Skip to content

Commit f8737dd

Browse files
ramonsmitsmauroservienti
authored andcommitted
Remove TODO, tested lifetime without constructor on stop and on shutdown
1 parent d43b32b commit f8737dd

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/ServiceControl.Hosting/WindowsServiceWithRequestTimeout.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ sealed class WindowsServiceWithRequestTimeout : WindowsServiceLifetime
1313
static readonly TimeSpan CancellationDuration = TimeSpan.FromSeconds(5);
1414
readonly HostOptions hostOptions;
1515

16-
// TODO: This constructor should not be needed and exist for backwards compability in the runtime
17-
// public WindowsServiceWithRequestTimeout(IHostEnvironment environment, IHostApplicationLifetime applicationLifetime, ILoggerFactory loggerFactory, IOptions<HostOptions> optionsAccessor)
18-
// : this(environment, applicationLifetime, loggerFactory, optionsAccessor, Options.Create(new WindowsServiceLifetimeOptions()))
19-
// {
20-
// }
21-
2216
public WindowsServiceWithRequestTimeout(IHostEnvironment environment, IHostApplicationLifetime applicationLifetime, ILoggerFactory loggerFactory, IOptions<HostOptions> optionsAccessor, IOptions<WindowsServiceLifetimeOptions> windowsServiceOptionsAccessor)
2317
: base(environment, applicationLifetime, loggerFactory, optionsAccessor, windowsServiceOptionsAccessor)
2418
{

0 commit comments

Comments
 (0)