31 lines
913 B
C#
31 lines
913 B
C#
using GerstITS.Job.Dashboard.Web;
|
|
using GerstITS.Web.Api;
|
|
using GerstITS.Web.Api.Hosting;
|
|
using Serilog;
|
|
|
|
namespace GerstITS.Examples.JobDashboard;
|
|
|
|
public class Program
|
|
{
|
|
#region Methods
|
|
|
|
public static void Main(string[] args)
|
|
{
|
|
HostingStartup.Use(args)
|
|
.Host()
|
|
.UseSerilog((context, configuration) => configuration.ReadFrom.Configuration(context.Configuration))
|
|
.Services()
|
|
.Build()
|
|
.IfDevelopment(app => app.UseDeveloperExceptionPage())
|
|
.UseAuthentication()
|
|
.UseAuthorization()
|
|
.UseJobDashboard()
|
|
.UseRouting()
|
|
.UseEndpoints(endpoints => endpoints.MapControllers())
|
|
.UseSerilogRequestLogging()
|
|
.Run();
|
|
}
|
|
|
|
#endregion
|
|
}
|