Skip to content

Commit a14dc4c

Browse files
Suppress CA1416
1 parent 5754121 commit a14dc4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ServiceControl.Audit/Infrastructure/Hosting/WindowsServiceCustomLifetime.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ namespace ServiceControl.Audit.Infrastructure.Hosting;
66
using Microsoft.Extensions.Options;
77
using Settings;
88

9+
#pragma warning disable CA1416
910
class WindowsServiceCustomLifetime : WindowsServiceLifetime
1011
{
1112
public WindowsServiceCustomLifetime(IHostEnvironment environment, IHostApplicationLifetime applicationLifetime, ILoggerFactory loggerFactory, IOptions<HostOptions> optionsAccessor, Settings settings)
@@ -27,4 +28,5 @@ protected override void OnStop()
2728
}
2829

2930
readonly Settings settings;
30-
}
31+
}
32+
#pragma warning restore CA1416

0 commit comments

Comments
 (0)