Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 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;
 }
Esempio n. 3
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;
        }
 /// <summary>
 /// 构造函数
 /// </summary>
 public ExhibitionShopAppService(
     IRepository <ExhibitionShop, Guid> exhibitionshopRepository
     , IExhibitionShopManager exhibitionshopManager
     , IRepository <Shop, Guid> shopRepository
     , IRepository <Retailer, Guid> retailerRepository
     , IRepository <Exhibition, Guid> exhibitionRepository
     , IHostingEnvironment hostingEnvironment
     , IWeChatOAuthAppService weChatOAuthAppService
     , IWechatAppConfigAppService wechatAppConfigAppService
     )
 {
     _retailerRepository                    = retailerRepository;
     _shopRepository                        = shopRepository;
     _exhibitionshopRepository              = exhibitionshopRepository;
     _exhibitionshopManager                 = exhibitionshopManager;
     _exhibitionRepository                  = exhibitionRepository;
     _hostingEnvironment                    = hostingEnvironment;
     _weChatOAuthAppService                 = weChatOAuthAppService;
     _wechatAppConfigAppService             = wechatAppConfigAppService;
     _weChatOAuthAppService.WechatAppConfig = _wechatAppConfigAppService.GetWechatAppConfig(null).Result;
 }