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/PowerEventAwareWindowsServiceLifetime.cs
+9-8Lines changed: 9 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,9 @@
12
12
13
13
namespaceCodeCaster.WindowsServiceExtensions
14
14
{
15
+
/// <summary>
16
+
/// Basically the same as <see cref="WindowsServiceLifetime"/>, but states it can handle power events, and forwards those to the IHostedServices that claim to be capable of the same.
/// Sets the host lifetime to <see cref="PowerEventAwareWindowsServiceLifetime"/> and does whatever <see cref="WindowsServiceLifetimeHostBuilderExtensions.UseWindowsService(IHostBuilder)"/> does.
16
+
/// </summary>
17
+
/// <param name="hostBuilder">The Microsoft.Extensions.Hosting.IHostBuilder to operate on.</param>
18
+
/// <returns>The same instance of the Microsoft.Extensions.Hosting.IHostBuilder for chaining.</returns>
19
+
/// <remarks>This is context aware and will only activate if it detects the process is running as a Windows Service.</remarks>
/// Sets the host lifetime to <see cref="PowerEventAwareWindowsServiceLifetime"/> and does whatever <see cref="WindowsServiceLifetimeHostBuilderExtensions.UseWindowsService(IHostBuilder)"/> does.
27
+
/// </summary>
28
+
/// <param name="hostBuilder">The Microsoft.Extensions.Hosting.IHostBuilder to operate on.</param>
29
+
/// <param name="configure">An action to configure the lifetime's options.</param>
30
+
/// <returns>The same instance of the Microsoft.Extensions.Hosting.IHostBuilder for chaining.</returns>
31
+
/// <remarks>This is context aware and will only activate if it detects the process is running as a Windows Service.</remarks>
0 commit comments