chore(tenpayv3): 新增基于 .NET Framework 4.7 的示例项目

This commit is contained in:
Fu Diwei
2021-12-28 14:05:39 +08:00
parent b2ce287136
commit 2dcfcab262
58 changed files with 1114 additions and 204 deletions

View File

@@ -1,16 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Options;
namespace SKIT.FlurlHttpClient.Wechat.Api.Sample_Net5.Options
namespace SKIT.FlurlHttpClient.Wechat.Api.Sample.Options
{
public partial class WechatOptions : IOptions<WechatOptions>
{
WechatOptions IOptions<WechatOptions>.Value => this;
public WechatAccount[] Accounts { get; set; } = Array.Empty<WechatAccount>();
public Types.WechatAccount[] Accounts { get; set; } = Array.Empty<Types.WechatAccount>();
public string CallbackState { get; set; } = string.Empty;
@@ -19,13 +16,16 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Sample_Net5.Options
partial class WechatOptions
{
public class WechatAccount
{
public string? GhId { get; set; }
public static class Types
{
public class WechatAccount
{
public string? GhId { get; set; }
public string AppId { get; set; } = string.Empty;
public string AppId { get; set; } = string.Empty;
public string AppSecret { get; set; } = string.Empty;
public string AppSecret { get; set; } = string.Empty;
}
}
}
}