Skip to content

Commit 030a1d6

Browse files
committed
That's a bool
1 parent c000236 commit 030a1d6

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

CodeCaster.WindowsServiceExtensions.sln

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ VisualStudioVersion = 16.0.31229.75
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CodeCaster.WindowsServiceExtensions", "src\CodeCaster.WindowsServiceExtensions\CodeCaster.WindowsServiceExtensions.csproj", "{CC230E5D-8600-4048-8F10-E84A80F77DDC}"
77
EndProject
8+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{4B4ADAD2-7E93-44E5-8376-3B11173671EE}"
9+
ProjectSection(SolutionItems) = preProject
10+
Readme.md = Readme.md
11+
EndProjectSection
12+
EndProject
813
Global
914
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1015
Debug|Any CPU = Debug|Any CPU

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ These extensions allow your IHostedServices to respond to this power state chang
77

88
* On your Host Builder, call `UsePowerEventAwareWindowsService()` instead of [`UseWindowsService()`](https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.hosting.windowsservicelifetimehostbuilderextensions.usewindowsservice?view=dotnet-plat-ext-3.1).
99
* Instead of letting your service inherit [`Microsoft.Extensions.Hosting.BackgroundService`](https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.hosting.backgroundservice?view=dotnet-plat-ext-5.0), inherit from `CodeCaster.WindowsServiceExtensions.PowerEventAwareBackgroundService`.
10-
* Implement the method `public override void OnPowerEvent(PowerBroadcastStatus powerStatus)`
10+
* Implement the method `public override bool OnPowerEvent(PowerBroadcastStatus powerStatus)`

0 commit comments

Comments
 (0)