|
|
|
@ -1,12 +1,16 @@ |
|
|
|
|
// 以下为asp.net 6.0的写法,如果用5.0,请看Program.five.cs文件, |
|
|
|
|
// 或者参考github上的.net6.0分支相关代码 |
|
|
|
|
|
|
|
|
|
using System.IdentityModel.Tokens.Jwt; |
|
|
|
|
using System.Reflection; |
|
|
|
|
using Autofac; |
|
|
|
|
using Autofac.Extensions.DependencyInjection; |
|
|
|
|
using Microsoft.AspNetCore.Mvc.Controllers; |
|
|
|
|
using Microsoft.AspNetCore.Server.Kestrel.Core; |
|
|
|
|
using Microsoft.Extensions.DependencyInjection.Extensions; |
|
|
|
|
using Microsoft.IdentityModel.Logging; |
|
|
|
|
using Newtonsoft.Json.Converters; |
|
|
|
|
using Newtonsoft.Json.Serialization; |
|
|
|
|
using Serilog; |
|
|
|
|
using Tiobon.Core; |
|
|
|
|
using Tiobon.Core.Common; |
|
|
|
|
using Tiobon.Core.Common.Core; |
|
|
|
|
using Tiobon.Core.Common.Helper; |
|
|
|
|
using Tiobon.Core.Extensions; |
|
|
|
|
using Tiobon.Core.Extensions.Apollo; |
|
|
|
|
using Tiobon.Core.Extensions.Middlewares; |
|
|
|
@ -14,18 +18,6 @@ using Tiobon.Core.Extensions.ServiceExtensions; |
|
|
|
|
using Tiobon.Core.Filter; |
|
|
|
|
using Tiobon.Core.Hubs; |
|
|
|
|
using Tiobon.Core.Serilog.Utility; |
|
|
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
|
|
using Microsoft.AspNetCore.Mvc.Controllers; |
|
|
|
|
using Microsoft.AspNetCore.Server.Kestrel.Core; |
|
|
|
|
using Microsoft.Extensions.DependencyInjection.Extensions; |
|
|
|
|
using Microsoft.IdentityModel.Logging; |
|
|
|
|
using Newtonsoft.Json; |
|
|
|
|
using Newtonsoft.Json.Converters; |
|
|
|
|
using Newtonsoft.Json.Serialization; |
|
|
|
|
using Serilog; |
|
|
|
|
using System.IdentityModel.Tokens.Jwt; |
|
|
|
|
using System.Reflection; |
|
|
|
|
using System.Text; |
|
|
|
|
|
|
|
|
|
var builder = WebApplication.CreateBuilder(args); |
|
|
|
|
|
|
|
|
|