| | |
| | | options.WithStackFrame = true; |
| | | }); |
| | | |
| | | services.AddConfigurableOptions<AliyunOptions>(); |
| | | |
| | | services.AddComponent<EventBusServiceComponent>(); |
| | | |
| | | services.AddComponent<DistributedCacheServiceComponent>(); |
| | |
| | | services.AddMediatR(cfg => cfg.RegisterServicesFromAssemblies(App.Assemblies.ToArray())); |
| | | |
| | | services.AddHostedService<XmlDocBuildHostedService>(); |
| | | services.AddHostedService<BuildDynamicControllersHostedService>(); |
| | | |
| | | services.AddJwt<JwtHandler>(enableGlobalAuthorize: true); |
| | | |
| | |
| | | endpoints.MapControllers(); |
| | | }); |
| | | |
| | | lifetime.ApplicationStarted.Register(async () => |
| | | { |
| | | await ResourceUtils.BuildWebApis(); |
| | | }); |
| | | //lifetime.ApplicationStarted.Register(async () => |
| | | //{ |
| | | // await ResourceUtils.BuildDynamicControllersAsync(); |
| | | //}); |
| | | } |
| | | } |
| | | } |