| | |
| | | services.AddHealthChecks(); |
| | | |
| | | services.AddConfigurableOptions<WxmpOptions>(); |
| | | services.AddConfigurableOptions<AlipayOptions>(); |
| | | services.AddConfigurableOptions<AliyunOptions>(); |
| | | services.AddConfigurableOptions<BaiduOptions>(); |
| | | |
| | | services.AddComponent<LogServiceComponent>(); |
| | | |
| | |
| | | |
| | | services.AddComponent<DistributedCacheServiceComponent>(); |
| | | |
| | | services.AddHttpRemote(); |
| | | services.AddSingleton<ResourceHttpUtils>(); |
| | | services.AddSingleton<AliyunSmsUtils>(); |
| | | services.AddHttpRemote(); |
| | | services.AddSingleton<AlipayUtils>(); |
| | | services.AddSingleton<AliyunSmsUtils>(); |
| | | services.AddSingleton<WxmpUtils>(); |
| | | services.AddScoped<SmsUtils>(); |
| | | |
| | |
| | | { |
| | | options.BuildSqlType = SqlTypes.SqlServer; |
| | | options.JobDetail.LogEnabled = true; |
| | | options.AddPersistence<DbJobPersistence>(); |
| | | //options.AddPersistence<DbJobPersistence>(); |
| | | options.AddJob<CalcTaskSatusByDateJob>(Triggers.Hourly()); |
| | | options.AddJob<CalcUserAgeByIdCardJob>(Triggers.Daily()); |
| | | }); |
| | | |
| | | services.AddSpecificationDocuments(options => |
| | |
| | | options.SchemaFilter<EnumSchemaFilter>(); |
| | | }); |
| | | services.AddSwaggerGenNewtonsoftSupport(); |
| | | |
| | | services.AddMvcFilter<ResourceActionFilter>(); |
| | | |
| | | services.AddControllers() |
| | | .AddNewtonsoftJson(options => |
| | |
| | | .AddDataValidation() |
| | | .AddInjectWithUnifyResult<FriendlyResultProvider>(); |
| | | |
| | | services.AddMvcFilter<ResourceActionFilter>(); |
| | | } |
| | | |
| | | public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IHostApplicationLifetime lifetime) |