コード例 #1
0
 public WxMessageService(
     WxAccessTokenService accessTokenService,
     WxHelper wxHelper)
 {
     this.accessTokenService = accessTokenService;
     this.wxHelper           = wxHelper;
 }
コード例 #2
0
 public CustomerService(
     WxAccessTokenService tokenSvc,
     WxHelper wxHelper)
 {
     this.tokenSvc = tokenSvc;
     this.wxHelper = wxHelper;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 /// <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;
 }