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