forked from EllieBotDevs/elliebot
20 lines
730 B
C#
20 lines
730 B
C#
|
using System;
|
|||
|
using Microsoft.AspNetCore.Hosting;
|
|||
|
using Microsoft.Extensions.Hosting;
|
|||
|
using EllieBot.Coordinator;
|
|||
|
using EllieBot.Services;
|
|||
|
using Serilog;
|
|||
|
|
|||
|
// Additional configuration is required to successfully run gRPC on macOS.
|
|||
|
// For instructions on how to configure Kestrel and gRPC clients on macOS, visit https://go.microsoft.com/fwlink/?linkid=2099682
|
|||
|
static IHostBuilder CreateHostBuilder(string[] args) =>
|
|||
|
Host.CreateDefaultBuilder(args)
|
|||
|
.ConfigureWebHostDefaults(webBuilder =>
|
|||
|
{
|
|||
|
webBuilder.UseStartup<CoordStartup>();
|
|||
|
});
|
|||
|
|
|||
|
LogSetup.SetupLogger("coord");
|
|||
|
Log.Information("Starting coordinator... Pid: {ProcessId}", Environment.ProcessId);
|
|||
|
|
|||
|
CreateHostBuilder(args).Build().Run();
|