예제 #1
0
 public DefaultAccessTokenAccessor(
     IAccessTokenProvider accessTokenProvider,
     IWeChatOfficialOptionsResolver weChatOfficialOptionsResolver)
 {
     _accessTokenProvider           = accessTokenProvider;
     _weChatOfficialOptionsResolver = weChatOfficialOptionsResolver;
 }
 public DefaultAccessTokenAccessor(IDistributedCache <string> distributedCache,
                                   IHttpClientFactory httpClientFactory,
                                   IWeChatOfficialOptionsResolver weChatOfficialOptionsResolver)
 {
     DistributedCache              = distributedCache;
     HttpClientFactory             = httpClientFactory;
     WeChatOfficialOptionsResolver = weChatOfficialOptionsResolver;
 }
예제 #3
0
 public WeChatController(SignatureChecker signatureChecker,
                         IHttpClientFactory httpClientFactory,
                         IJsTicketAccessor jsTicketAccessor,
                         ISignatureGenerator signatureGenerator,
                         IWeChatOfficialOptionsResolver optionsResolver)
 {
     _signatureChecker   = signatureChecker;
     _httpClientFactory  = httpClientFactory;
     _jsTicketAccessor   = jsTicketAccessor;
     _signatureGenerator = signatureGenerator;
     _optionsResolver    = optionsResolver;
 }
예제 #4
0
 public LoginService(IWeChatOfficialOptionsResolver optionsResolver)
 {
     _optionsResolver = optionsResolver;
 }