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
22 lines
477 B
C#
22 lines
477 B
C#
using Microsoft.Extensions.Configuration;
|
|
using Microsoft.Extensions.Hosting;
|
|
using Microsoft.Extensions.Logging;
|
|
using Robin.Configuration;
|
|
using Robin.Logging;
|
|
using Robin.Options;
|
|
using Robin.Services;
|
|
using Serilog;
|
|
|
|
var builder = Host.CreateApplicationBuilder(args);
|
|
builder
|
|
.AddAppsettings()
|
|
.AddEnvironmentVariables()
|
|
.ClearProviders()
|
|
.AddSerilog()
|
|
.AddRobinOptions()
|
|
.AddRobinServices();
|
|
|
|
var host = builder.Build();
|
|
|
|
await host.RunAsync();
|