2023-04-13 21:12:06 +08:00
|
|
|
|
using Furion;
|
|
|
|
|
|
using Microsoft.AspNetCore.Builder;
|
|
|
|
|
|
using Microsoft.AspNetCore.Hosting;
|
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
using Microsoft.Extensions.Hosting;
|
2023-09-21 19:55:55 +08:00
|
|
|
|
using SqlSugar;
|
2023-04-13 21:12:06 +08:00
|
|
|
|
using Yi.Framework.Infrastructure.AspNetCore;
|
|
|
|
|
|
using Yi.Framework.Infrastructure.Sqlsugar;
|
2023-04-19 13:39:55 +08:00
|
|
|
|
using Yi.Framework.Module.Caching;
|
2023-04-15 12:19:02 +08:00
|
|
|
|
using Yi.Framework.Module.ImageSharp.HeiCaptcha;
|
2023-04-16 14:30:56 +08:00
|
|
|
|
using Yi.Framework.Module.Sms.Aliyun;
|
2023-09-03 11:22:19 +08:00
|
|
|
|
using Yi.Framework.Module.WeChat;
|
2023-04-13 21:12:06 +08:00
|
|
|
|
|
|
|
|
|
|
namespace Yi.Framework.Module;
|
|
|
|
|
|
|
|
|
|
|
|
public class Startup : AppStartup
|
|
|
|
|
|
{
|
|
|
|
|
|
public void ConfigureServices(IServiceCollection services)
|
|
|
|
|
|
{
|
2023-04-15 12:19:02 +08:00
|
|
|
|
services.AddHeiCaptcha();
|
2023-04-16 14:30:56 +08:00
|
|
|
|
|
|
|
|
|
|
services.Configure<SmsAliyunOptions>(App.Configuration.GetSection("SmsAliyunOptions"));
|
2023-04-19 13:39:55 +08:00
|
|
|
|
|
|
|
|
|
|
services.Configure<CachingConnOptions>(App.Configuration.GetSection("CachingConnOptions"));
|
2023-09-03 11:22:19 +08:00
|
|
|
|
|
|
|
|
|
|
services.Configure<WeChatOptions>(App.Configuration.GetSection("WeChatOptions"));
|
2023-04-13 21:12:06 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|