示例#1
0
 public JssdkController(
     IWeixinAccessToken weixinAccessToken,
     IOptions <WeixinAccessTokenOptions> optionsAccessor)
 {
     _weixinAccessToken = weixinAccessToken ?? throw new ArgumentNullException(nameof(weixinAccessToken));
     _options           = optionsAccessor?.Value ?? throw new ArgumentNullException(nameof(optionsAccessor));
 }
 public MemoryCachedWeixinAccessToken(IMemoryCache cache, IOptions <WeixinAccessTokenOptions> optionsAccessor)
 {
     _cache   = cache;
     _options = optionsAccessor.Value;
 }