File tree Expand file tree Collapse file tree
src/Castle.Core.AsyncInterceptor
test/Castle.Core.AsyncInterceptor.Tests/InterfaceProxies Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <TargetFrameworks >net45;netstandard2.0;net5.0;net6.0;net7.0</TargetFrameworks >
5- <RootNamespace >Castle.DynamicProxy</RootNamespace >
65 <GenerateDocumentationFile >true</GenerateDocumentationFile >
7- <GenerateAssemblyInfo >false</GenerateAssemblyInfo >
86 <Authors >James Skimming</Authors >
97 <Description >AsyncInterceptor is an extension to Castle DynamicProxy to simplify the development of interceptors for asynchronous methods.</Description >
108 <Copyright >Copyright © 2016-2023 James Skimming</Copyright >
1816 <IncludeSymbols >true</IncludeSymbols >
1917 <SymbolPackageFormat >snupkg</SymbolPackageFormat >
2018 <PackageTags >async asynchronous-methods castle castle-core dynamic dynamicproxy dynamic-proxy dynamicproxy2 intercept-methods proxy</PackageTags >
21- <ContinuousIntegrationBuild Condition =" '$(CI)' == 'true' " >true</ContinuousIntegrationBuild >
2219 </PropertyGroup >
2320
2421 <!-- Strong name signing -->
Original file line number Diff line number Diff line change @@ -47,15 +47,15 @@ public Task AsynchronousVoidMethod()
4747 {
4848 _log . Add ( nameof ( AsynchronousVoidMethod ) + ":Start" ) ;
4949 return Task . Delay ( 10 ) . ContinueWith (
50- t => _log . Add ( nameof ( AsynchronousVoidMethod ) + ":End" ) ,
50+ _ => _log . Add ( nameof ( AsynchronousVoidMethod ) + ":End" ) ,
5151 TaskScheduler . Default ) ;
5252 }
5353
5454 public Task AsynchronousVoidExceptionMethod ( )
5555 {
5656 _log . Add ( nameof ( AsynchronousVoidExceptionMethod ) + ":Start" ) ;
5757 return Task . Delay ( 10 ) . ContinueWith (
58- t => throw new InvalidOperationException ( nameof ( AsynchronousVoidExceptionMethod ) + ":Exception" ) ,
58+ _ => throw new InvalidOperationException ( nameof ( AsynchronousVoidExceptionMethod ) + ":Exception" ) ,
5959 TaskScheduler . Default ) ;
6060 }
6161
Original file line number Diff line number Diff line change @@ -26,8 +26,5 @@ public virtual async Task<Guid> AsynchronousResultMethod()
2626 return Guid . NewGuid ( ) ;
2727 }
2828
29- internal void PostConstructorInitialize ( ListLogger log )
30- {
31- _log ??= log ?? throw new ArgumentNullException ( nameof ( log ) ) ;
32- }
29+ internal void PostConstructorInitialize ( ListLogger log ) => _log = log ;
3330}
You can’t perform that action at this time.
0 commit comments