chore: 升级示例项目为基于 .NET 6.0 的实现

This commit is contained in:
Fu Diwei
2021-12-27 19:39:03 +08:00
parent 15e9042cad
commit b2ce287136
36 changed files with 23 additions and 19 deletions

View File

@@ -0,0 +1,31 @@
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
{
public partial class WechatOptions : IOptions<WechatOptions>
{
WechatOptions IOptions<WechatOptions>.Value => this;
public WechatAccount[] Accounts { get; set; } = Array.Empty<WechatAccount>();
public string CallbackState { get; set; } = string.Empty;
public string CallbackToken { get; set; } = string.Empty;
}
partial class WechatOptions
{
public class WechatAccount
{
public string? GhId { get; set; }
public string AppId { get; set; } = string.Empty;
public string AppSecret { get; set; } = string.Empty;
}
}
}