Skip to content

Commit 3a29ef6

Browse files
committed
Use interceptors
1 parent 4893279 commit 3a29ef6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

benchmarks/Foundatio.Mediator.Benchmarks/Foundatio.Mediator.Benchmarks.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010
<!-- Emit compiler generated files for debugging purposes -->
1111
<CompilerGeneratedFilesOutputPath>Generated</CompilerGeneratedFilesOutputPath>
1212
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
13+
<DisableMediatorInterceptors>false</DisableMediatorInterceptors>
1314
<InterceptorsNamespaces>$(InterceptorsNamespaces);Foundatio.Mediator</InterceptorsNamespaces>
1415
</PropertyGroup>
1516

1617
<ItemGroup>
18+
<CompilerVisibleProperty Include="DisableMediatorInterceptors" />
1719
<!-- Exclude the output of source generators from the compilation -->
1820
<Compile Remove="$(CompilerGeneratedFilesOutputPath)/**/*.cs" />
1921
</ItemGroup>

samples/ConsoleSample/ConsoleSample.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
<!-- Emit compiler generated files for debugging purposes -->
1010
<CompilerGeneratedFilesOutputPath>Generated</CompilerGeneratedFilesOutputPath>
1111
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
12-
<DisableMediatorInterceptors>true</DisableMediatorInterceptors>
12+
<DisableMediatorInterceptors>false</DisableMediatorInterceptors>
13+
<InterceptorsNamespaces>$(InterceptorsNamespaces);Foundatio.Mediator</InterceptorsNamespaces>
1314
</PropertyGroup>
1415

1516
<ItemGroup>

0 commit comments

Comments
 (0)