public WeChatServiceController(IWeChatAuthService weChatAuthService, IWeChatPayService weChatPayService, IWeChatMessageService wChatMessageService, IWeChatRedPackService weChatRedPackService, IWeChatEventServices weChatEventServices) { _weChatAuthService = weChatAuthService; _weChatPayService = weChatPayService; _wChatMessageService = wChatMessageService; _weChatRedPackService = weChatRedPackService; _weChatEventServices = weChatEventServices; }
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; }