Skip to content

Commit 287e9a6

Browse files
committed
Fix inspection warnings
1 parent 36a2bbe commit 287e9a6

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

src/Castle.Core.AsyncInterceptor/Castle.Core.AsyncInterceptor.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
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>
@@ -18,7 +16,6 @@
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 -->

test/Castle.Core.AsyncInterceptor.Tests/InterfaceProxies/ClassWithInterfaceToProxy.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

test/Castle.Core.AsyncInterceptor.Tests/InterfaceProxies/ClassWithVirtualMethodToProxy.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)