| | |
| | | using cylsg.Core; |
| | | using cylsg.Application.Timers; |
| | | using cylsg.Core; |
| | | using cylsg.Web.Core.Handlers; |
| | | using Furion; |
| | | using Furion.VirtualFileServer; |
| | | using InitQ; |
| | | using Microsoft.AspNetCore.Builder; |
| | | using Microsoft.AspNetCore.Hosting; |
| | | using Microsoft.Extensions.DependencyInjection; |
| | |
| | | return DbContext.Instance; |
| | | } |
| | | ); |
| | | services.AddHostedService<TimedBackgroundService>(); |
| | | services.AddJsonOptions(options => |
| | | { |
| | | //更改输出输入枚举属性为 字段名 |
| | |
| | | |
| | | services.AddControllersWithViews() |
| | | .AddInjectWithUnifyResult<EzCoreRESTFulResultProvider>(); |
| | | services.AddFileLogging(); |
| | | } |
| | | |
| | | public void Configure(IApplicationBuilder app, IWebHostEnvironment env) |