Exemplo n.º 1
0
 public ModelClient(
     IWeChatApi api,
     IWeChatUserService wxUserService,
     IRandomGenerator generator,
     IWeChatPayService payService,
     IMCardService mCardService,
     ISharingHostService hostService,
     IWeChatMsgHandler weChatMsgHandler,
     TencentCMQClientFactory factory,
     IDatabaseFactory databaseFactory,
     IConfiguration configuration)
 {
     this.wxapi = api;
     this.sharingHostService = hostService;
     this.wxUserService      = wxUserService;
     this.generator          = generator;
     this.weChatPayService   = payService;
     this.mCardService       = mCardService;
     this.handler            = weChatMsgHandler;
     this.cmqclient          = factory.Create <OnlineOrder>("lemon");
     this.databaseFactory    = databaseFactory;
     this.configuration      = configuration;
 }
Exemplo n.º 2
0
 public WeChatMsgHandler(ISharingHostService service, IWeChatUserService wxUserService)
 {
     this.service       = service;
     this.wxUserService = wxUserService;
 }