You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/CodeCaster.WindowsServiceExtensions/Service/WindowsServiceBackgroundService.cs
+5-13Lines changed: 5 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -24,26 +24,18 @@ public abstract class WindowsServiceBackgroundService : BackgroundService, IWind
24
24
/// </summary>
25
25
protectedreadonlyILogger<IHostedService>Logger;
26
26
27
+
#pragma warning disable CS0419,CS1574// Ambiguous reference in cref attribute
27
28
/// <summary>
28
-
/// To interact with the Service Control Manager.
29
+
/// To interact with the Service Control Manager. <c>null</c> when <see cref="WindowsServiceLifetimeHostBuilderExtensionsAdapter.UseWindowsServiceExtensions"/> wasn't called.
29
30
/// </summary>
31
+
#pragma warning restore CS0419,CS1574// Ambiguous reference in cref attribute
/// To ask nicely to stop the host when cancellation is requested. We're just a BackgroundService, returning from ExecuteAsync() won't stop the host application. Better us than Windows.
0 commit comments