mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-06 01:30:53 +08:00
25 lines
725 B
C#
25 lines
725 B
C#
|
|
using Microsoft.AspNetCore.Builder;
|
|||
|
|
using Microsoft.Extensions.DependencyInjection;
|
|||
|
|
using StartupModules;
|
|||
|
|
using Yi.Framework.Core.Configuration;
|
|||
|
|
using Yi.Framework.WeChatPay.Extensions;
|
|||
|
|
using Yi.Framework.WeChatPay.Options;
|
|||
|
|
|
|||
|
|
namespace Yi.Framework.WeChatPay
|
|||
|
|
{
|
|||
|
|
public class YiFrameworkWeChatPayModule : IStartupModule
|
|||
|
|
{
|
|||
|
|
public void Configure(IApplicationBuilder app, ConfigureMiddlewareContext context)
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public void ConfigureServices(IServiceCollection services, ConfigureServicesContext context)
|
|||
|
|
{
|
|||
|
|
services.AddWeChatPayServer(option =>
|
|||
|
|
{
|
|||
|
|
option = Appsettings.app<PayOptions>(nameof(PayOptions));
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|