Skip to content

Commit ae27133

Browse files
feature(#22): this commit introduces workers extension to register "key rotation background service"
1 parent 01afe36 commit ae27133

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

Applications/Backend/Source/HttpsRichardy.Federation.WebApi/Extensions/WebInfrastructureExtension.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public static void AddWebComposition(this IServiceCollection services, IWebHostE
1414
services.AddProviders();
1515
services.AddOpenApiSpecification();
1616
services.AddRazorPages();
17+
services.AddWorkers();
1718
services.AddFluentValidationAutoValidation(options =>
1819
{
1920
options.DisableDataAnnotationsValidation = true;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
namespace HttpsRichardy.Federation.WebApi.Extensions;
2+
3+
[ExcludeFromCodeCoverage]
4+
public static class WorkersExtension
5+
{
6+
public static void AddWorkers(this IServiceCollection services)
7+
{
8+
services.AddHostedService<KeyRotationBackgroundService>();
9+
}
10+
}

0 commit comments

Comments
 (0)