public WxMessageService(
     WxAccessTokenService accessTokenService,
     WxHelper wxHelper)
 {
     this.accessTokenService = accessTokenService;
     this.wxHelper           = wxHelper;
 }
Example #2
0
 public CustomerService(
     WxAccessTokenService tokenSvc,
     WxHelper wxHelper)
 {
     this.tokenSvc = tokenSvc;
     this.wxHelper = wxHelper;
 }
 public WxAccountService(
     IDistributedCache cache,
     WxAccessTokenService wxAccessTokenService,
     WxHelper wxHelper,
     WxAccessTokenService accessTokenSvc,
     ILogger <WxAccessTokenService> logger)
 {
     this.cache = cache;
     this.wxAccessTokenService = wxAccessTokenService;
     this.wxHelper             = wxHelper;
     this.accessTokenSvc       = accessTokenSvc;
     this.logger = logger;
 }
 /// <summary>
 /// ctor
 /// </summary>
 public WxJsSdkService(
     IDistributedCache cache,
     ILogger <WxJsSdkService> logger,
     IOptions <MpWeiXinOptions> wxOption,
     WxHelper wxHelper,
     WxAccessTokenService accessTokenSvc
     )
 {
     this.cache          = cache;
     this.logger         = logger;
     this.accessTokenSvc = accessTokenSvc;
     this.wxHelper       = wxHelper;
     config = wxOption.Value;
 }