retroactiune/Retroactiune.WebAPI/Program.cs

24 lines
700 B
C#
Raw Permalink Normal View History

using System.Diagnostics.CodeAnalysis;
2021-05-28 20:52:56 +00:00
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
namespace Retroactiune
{
[ExcludeFromCodeCoverage]
2021-07-17 12:55:22 +00:00
[SuppressMessage("ReSharper", "ClassNeverInstantiated.Global")]
2021-05-28 20:52:56 +00:00
public class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
2021-07-17 12:55:22 +00:00
private static IHostBuilder CreateHostBuilder(string[] args) =>
2021-05-28 20:52:56 +00:00
Host.CreateDefaultBuilder(args)
2021-07-17 12:55:22 +00:00
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseSentry();
webBuilder.UseStartup<Startup>();
});
2021-05-28 20:52:56 +00:00
}
}