|
@ -55,7 +55,7 @@ public class Startup |
|
|
services.AddSignalR(o => o.EnableDetailedErrors = true); |
|
|
services.AddSignalR(o => o.EnableDetailedErrors = true); |
|
|
JobHostdService.AddService(services); |
|
|
JobHostdService.AddService(services); |
|
|
services.AddSingleton<JobHostdService>(); |
|
|
services.AddSingleton<JobHostdService>(); |
|
|
//services.AddHostedService(o => o.GetRequiredService<JobHostdService>());
|
|
|
services.AddHostedService(o => o.GetRequiredService<JobHostdService>()); |
|
|
services.AddRouting(options => options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer)); |
|
|
services.AddRouting(options => options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer)); |
|
|
services.AddMvc(options => options.Conventions.Add(new RouteTokenTransformerConvention(new SlugifyParameterTransformer()))); |
|
|
services.AddMvc(options => options.Conventions.Add(new RouteTokenTransformerConvention(new SlugifyParameterTransformer()))); |
|
|
services.AddApplication<SettleAccountHttpApiHostModule>(); |
|
|
services.AddApplication<SettleAccountHttpApiHostModule>(); |
|
|