mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-03 00:00:58 +08:00
19 lines
690 B
C#
19 lines
690 B
C#
|
|
using Microsoft.Extensions.DependencyInjection;
|
|||
|
|
using Volo.Abp.Caching;
|
|||
|
|
using Yi.Framework.Core;
|
|||
|
|
using Yi.Framework.WeChat.MiniProgram.Token;
|
|||
|
|
|
|||
|
|
namespace Yi.Framework.WeChat.MiniProgram;
|
|||
|
|
|
|||
|
|
[DependsOn(typeof(YiFrameworkCoreModule),
|
|||
|
|
typeof(AbpCachingModule))]
|
|||
|
|
public class YiFrameworkWeChatMiniProgramModule: AbpModule
|
|||
|
|
{
|
|||
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|||
|
|
{
|
|||
|
|
var services = context.Services;
|
|||
|
|
var configuration = context.Services.GetConfiguration();
|
|||
|
|
Configure<WeChatMiniProgramOptions>(configuration.GetSection("WeChatMiniProgram"));
|
|||
|
|
services.AddSingleton<IMiniProgramToken, CacheMiniProgramToken>();
|
|||
|
|
}
|
|||
|
|
}
|