Skip to content

Commit f38393b

Browse files
committed
Remove ServiceRecoveryHostedService, related extension, and bump version to 4.3.0
- Deleted `ServiceRecoveryHostedService` and `AddWindowsServiceRecovery` extension. - Updated `version.props` to 4.3.0.
1 parent bd676e0 commit f38393b

3 files changed

Lines changed: 1 addition & 75 deletions

File tree

‎ProReception.DistributionServerInfrastructure/HostedServices/ServiceRecoveryHostedService.cs‎

Lines changed: 0 additions & 62 deletions
This file was deleted.

‎ProReception.DistributionServerInfrastructure/WebApplicationBuilderExtensions.cs‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@
77
using Configuration;
88
using Flurl.Http;
99
using Flurl.Http.Configuration;
10-
using HostedServices;
1110
using Hubs;
1211
using JetBrains.Annotations;
1312
using Microsoft.AspNetCore.Builder;
1413
using Microsoft.AspNetCore.SignalR;
1514
using Microsoft.Extensions.Configuration;
1615
using Microsoft.Extensions.DependencyInjection;
17-
using Microsoft.Extensions.Hosting;
18-
using Microsoft.Extensions.Logging;
1916
using ProReceptionApi;
2017
using Serilog;
2118
using Serilog.Events;
@@ -81,13 +78,4 @@ public static WebApplicationBuilder AddProReceptionDistributionServerInfrastruct
8178

8279
return builder;
8380
}
84-
85-
[PublicAPI]
86-
public static WebApplicationBuilder AddWindowsServiceRecovery(this WebApplicationBuilder builder, string serviceName)
87-
{
88-
builder.Services.AddSingleton<IHostedService>(sp =>
89-
new ServiceRecoveryHostedService(serviceName, sp.GetRequiredService<ILogger<ServiceRecoveryHostedService>>()));
90-
91-
return builder;
92-
}
9381
}

‎version.props‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>4.2.0</Version>
3+
<Version>4.3.0</Version>
44
</PropertyGroup>
55
</Project>

0 commit comments

Comments
 (0)