|
@ -29,6 +29,16 @@ public class Startup |
|
|
options.MimeTypes = ResponseCompressionDefaults.MimeTypes.Concat(new[] { "image/svg+xml" }); |
|
|
options.MimeTypes = ResponseCompressionDefaults.MimeTypes.Concat(new[] { "image/svg+xml" }); |
|
|
}); |
|
|
}); |
|
|
services.AddScheduler(); |
|
|
services.AddScheduler(); |
|
|
|
|
|
services.AddCors(options => |
|
|
|
|
|
{ |
|
|
|
|
|
options.AddPolicy("Default", builder => |
|
|
|
|
|
{ |
|
|
|
|
|
builder.SetIsOriginAllowed(isOriginAllowed => true) |
|
|
|
|
|
.AllowAnyMethod() |
|
|
|
|
|
.AllowAnyHeader() |
|
|
|
|
|
.AllowCredentials(); |
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
services.AddSingleton<JisBBACSeEdiCompareAppService>(); |
|
|
services.AddSingleton<JisBBACSeEdiCompareAppService>(); |
|
|
services.AddSingleton<JisHBPOSeEdiCompareAppService>(); |
|
|
services.AddSingleton<JisHBPOSeEdiCompareAppService>(); |
|
|
services.AddSignalR(o => o.EnableDetailedErrors = true); |
|
|
services.AddSignalR(o => o.EnableDetailedErrors = true); |
|
@ -53,6 +63,7 @@ public class Startup |
|
|
|
|
|
|
|
|
public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory) |
|
|
public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory) |
|
|
{ |
|
|
{ |
|
|
|
|
|
app.UseCors("Default"); |
|
|
app.UseResponseCompression(); |
|
|
app.UseResponseCompression(); |
|
|
app.UseRouting(); |
|
|
app.UseRouting(); |
|
|
app.UseEndpoints(endpoints => endpoints.MapHub<PageHub>("/api/hub")); |
|
|
app.UseEndpoints(endpoints => endpoints.MapHub<PageHub>("/api/hub")); |
|
|