| | |
| | | using WIDESEA_Core.Helper; |
| | | using WIDESEA_Core.Extensions; |
| | | using WIDESEA_Core.Middlewares; |
| | | using System.Reflection; |
| | | using WIDESEA_Core.Filter; |
| | | using Autofac; |
| | | using Autofac.Core; |
| | | using Autofac.Extensions.DependencyInjection; |
| | | using Microsoft.AspNetCore.Builder; |
| | | using Microsoft.AspNetCore.Mvc.Controllers; |
| | | using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; |
| | | using Microsoft.Extensions.DependencyInjection.Extensions; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Converters; |
| | | using Newtonsoft.Json.Serialization; |
| | | using Newtonsoft.Json; |
| | | using System.Reflection; |
| | | using System.Text; |
| | | using Microsoft.AspNetCore.Mvc.Controllers; |
| | | using Microsoft.Extensions.DependencyInjection.Extensions; |
| | | using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.BaseServices; |
| | | using Autofac.Extensions.DependencyInjection; |
| | | using Autofac; |
| | | using WIDESEA_WMSServer.Filter; |
| | | using WIDESEA_Core.Authorization; |
| | | using WIDESEA_Core.BaseServices; |
| | | using WIDESEA_Core.Core; |
| | | using Autofac.Core; |
| | | using Microsoft.AspNetCore.Builder; |
| | | using WIDESEA_Core.Extensions; |
| | | using WIDESEA_Core.Filter; |
| | | using WIDESEA_Core.Helper; |
| | | using WIDESEA_Core.Middlewares; |
| | | using WIDESEA_Model; |
| | | using WIDESEA_WMSServer.Filter; |
| | | |
| | | var builder = WebApplication.CreateBuilder(args); |
| | | |
| | |
| | | builder.Services.Replace(ServiceDescriptor.Transient<IControllerActivator, ServiceBasedControllerActivator>()); |
| | | Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); |
| | | |
| | | builder.Services.AddSignalR(); |
| | | |
| | | var app = builder.Build(); |
| | | |
| | | app.MapHub<WMSNoticeHub>("/wmsNoticeHub"); // 路由 |
| | | |
| | | // 3、配置中间件 |
| | | app.UseMiniProfiler();//性能分析器 |
| | | app.ConfigureApplication();//配置文件 |