public YiBinWXController(IWechatAppConfigAppService wechatAppConfigAppService,
                                 IOptions <WeChatTenantSetting> settings,
                                 IWeChatOAuthAppService weChatOAuthAppService,
                                 IWeChatUserAppService weChatUserAppService,
                                 IActivityAppService activityAppService,
                                 IActivityGoodsAppService activityGoodsAppService,
                                 IRepository <WeChatUser, Guid> wechatuserRepository,
                                 IActivityFormAppService activityFormAppService,
                                 IActivityBanquetAppService activityBanquetAppService,
                                 IActivityDeliveryInfoAppService activityDeliveryInfoAppService,
                                 IActivityFormLogAppService activityFormLogAppService,
                                 IHostingEnvironment env) : base(wechatAppConfigAppService)
        {
            _settings = settings.Value;
            tenantId  = _settings.YiBin;
            InitAppConfigSetting();

            _weChatOAuthAppService   = weChatOAuthAppService;
            _weChatUserAppService    = weChatUserAppService;
            _activityAppService      = activityAppService;
            _activityGoodsAppService = activityGoodsAppService;
            _weChatOAuthAppService.WechatAppConfig = WechatAppConfig;//注入配置
            _appConfiguration               = env.GetAppConfiguration();
            _wechatuserRepository           = wechatuserRepository;
            _activityFormAppService         = activityFormAppService;
            _activityBanquetAppService      = activityBanquetAppService;
            _activityDeliveryInfoAppService = activityDeliveryInfoAppService;
            _activityFormLogAppService      = activityFormLogAppService;
        }
 public MessageHandlerAppServer(IRepository <WechatMessage, Guid> wechatmessageRepository,
                                IRepository <WechatSubscribe, Guid> wechatsubscribeRepository,
                                IRepository <WechatAppConfig, int> wechatappconfigRepository,
                                IWeChatUserAppService wChatUserAppService)
 //IWeChatUserManager wechatUserManager)
 {
     _wechatmessageRepository   = wechatmessageRepository;
     _wechatsubscribeRepository = wechatsubscribeRepository;
     //_wechatUserManager = wechatUserManager;
     _wChatUserAppService       = wChatUserAppService;
     _wechatappconfigRepository = wechatappconfigRepository;
 }
 public SYQWXController(IWechatAppConfigAppService wechatAppConfigAppService,
                        IWeChatOAuthAppService weChatOAuthAppService,
                        IWeChatUserAppService weChatUserAppService,
                        IOrderAppService orderAppService,
                        IActivityAppService activityAppService
                        ) : base(wechatAppConfigAppService)
 {
     InitAppConfigSetting();
     _weChatOAuthAppService = weChatOAuthAppService;
     _weChatOAuthAppService.WechatAppConfig = WechatAppConfig;//注入配置
     _weChatUserAppService = weChatUserAppService;
     _orderAppService      = orderAppService;
     _activityAppService   = activityAppService;
 }
Exemple #4
0
 public HCMessageHandler(IRepository <WechatMessage, Guid> wechatmessageRepository,
                         IRepository <WechatSubscribe, Guid> wechatsubscribeRepository,
                         //IWeChatUserManager wechatUserManager,
                         IRepository <WechatAppConfig, int> wechatappconfigRepository,
                         IWeChatUserAppService wChatUserAppService,
                         int?tenantId, Stream inputStream,
                         PostModel postModel,
                         int maxRecordCount = 0) : base(inputStream, postModel, maxRecordCount)
 {
     _wechatmessageRepository   = wechatmessageRepository;
     _wechatsubscribeRepository = wechatsubscribeRepository;
     //_wechatUserManager = wechatUserManager;
     _wChatUserAppService = wChatUserAppService;
     Logger    = NullLogger.Instance;
     _tenantId = tenantId;
     _wechatappconfigRepository = wechatappconfigRepository;
 }
Exemple #5
0
        public GAWXController(IWechatAppConfigAppService wechatAppConfigAppService,
                              //IOptions<WeChatTenantSetting> settings,
                              IWeChatOAuthAppService weChatOAuthAppService,
                              IWeChatUserAppService weChatUserAppService,
                              IShopAppService shopAppService
                              //IHostingEnvironment env
                              //IHostingEnvironment env
                              ) : base(wechatAppConfigAppService)
        {
            //_settings = settings.Value;
            //tenantId = _settings.GuangAn;
            InitAppConfigSetting();

            _weChatOAuthAppService = weChatOAuthAppService;
            _weChatOAuthAppService.WechatAppConfig = WechatAppConfig;//注入配置
            //_appConfiguration = env.GetAppConfiguration();
            _weChatUserAppService = weChatUserAppService;
            _shopAppService       = shopAppService;
        }