2020-01-10 08:33:13 -05:00
|
|
|
|
using Bit.Core.Utilities;
|
2017-12-08 15:02:54 -05:00
|
|
|
|
|
|
|
|
|
|
namespace Bit.EventsProcessor;
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2019-03-02 12:15:28 -05:00
|
|
|
|
public class Program
|
2017-12-08 15:02:54 -05:00
|
|
|
|
{
|
2019-03-02 12:15:28 -05:00
|
|
|
|
public static void Main(string[] args)
|
2017-12-08 15:02:54 -05:00
|
|
|
|
{
|
2020-01-10 08:33:13 -05:00
|
|
|
|
Host
|
2019-03-02 12:15:28 -05:00
|
|
|
|
.CreateDefaultBuilder(args)
|
2020-01-10 08:33:13 -05:00
|
|
|
|
.ConfigureWebHostDefaults(webBuilder =>
|
|
|
|
|
|
{
|
|
|
|
|
|
webBuilder.UseStartup<Startup>();
|
|
|
|
|
|
webBuilder.ConfigureLogging((hostingContext, logging) =>
|
2022-09-26 15:22:02 -04:00
|
|
|
|
logging.AddSerilog(hostingContext, (e, globalSettings) => e.Level >= globalSettings.MinLogLevel.EventsProcessorSettings.Default));
|
2020-01-10 08:33:13 -05:00
|
|
|
|
})
|
2019-03-02 12:15:28 -05:00
|
|
|
|
.Build()
|
|
|
|
|
|
.Run();
|
2017-12-08 15:02:54 -05:00
|
|
|
|
}
|
|
|
|
|
|
}
|