mirror of
https://github.com/AlexMacocian/ServerManagementUtils.git
synced 2026-07-15 15:19:58 +00:00
69fd4bfb62
Setup base files for Robin monitoring service
17 lines
413 B
C#
17 lines
413 B
C#
using System.Core.Extensions;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.Hosting;
|
|
|
|
namespace Robin.Services;
|
|
|
|
public static class BuilderExtensions
|
|
{
|
|
public static IHostApplicationBuilder AddRobinServices(this IHostApplicationBuilder builder)
|
|
{
|
|
builder.ThrowIfNull();
|
|
builder.Services.AddHostedService<MonitoringService>();
|
|
|
|
return builder;
|
|
}
|
|
}
|