initial commit

This commit is contained in:
Matthias Heil
2026-04-04 13:30:13 +02:00
commit 6bed9b284c
186 changed files with 10650 additions and 0 deletions
@@ -0,0 +1,15 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace RandomLogging.Service;
public static class ServicesExtension
{
public static HostApplicationBuilder AddRandomBackgroundService(this HostApplicationBuilder builder)
{
builder.Services.AddSingleton<RandomLoggingService>();
builder.Services.AddHostedService(service => service.GetRequiredService<RandomLoggingService>());
return builder;
}
}