Пример #1
0
        public MerchantService(
            IOrchardServices os,
            IEnjoyAuthService auth,
            IWeChatApi wechat) :
            base(os)
        {
            this.Auth = auth;

            this.WeChat = wechat;
        }
Пример #2
0
 // GET: Default
 public MerchantController(
     IWeChatApi api,
     IOrchardServices os,
     IEnjoyAuthService auth,
     IShopService shop,
     IMerchantService merchant)
 {
     this.WeChat   = api;
     this.OS       = os;
     this.Auth     = auth;
     this.Merchant = merchant;
     this.Shop     = shop;
 }
Пример #3
0
        public CardsController(
            IOrchardServices os,
            ICardCouponService cardcoupn,
            IMerchantService merchant,
            IEnjoyAuthService auth,

            IWeChatApi wechat)
        {
            this.OS         = os;
            this.WeChat     = wechat;
            this.CardCoupon = cardcoupn;
            this.Merchant   = merchant;
            this.Auth       = auth;
        }
Пример #4
0
        public override void Init()
        {
            base.Init();
            var os = _container.Resolve <IOrchardServices>();

            _merchantService     = _container.Resolve <IMerchantService>();
            _verifyCodeGenerator = _container.Resolve <IVerifyCodeGenerator>();
            long.TryParse(_verifyCodeGenerator.GenerateNewVerifyCode(), out _merchantid);
            _enjoyAuthService  = _container.Resolve <IEnjoyAuthService>();
            _weChatMsgHandler  = _container.Resolve <IWeChatMsgHandler>();
            _cardCouponService = _container.Resolve <ICardCouponService>();
            _weChatApi         = _container.Resolve <IWeChatApi>();
            CreatingEnjoyUserAndMerchant();
            //CreatingCardCoupon();
        }
Пример #5
0
 public EnjoyController(
     IOrchardServices os,
     IEnjoyAuthService auth,
     IWeChatApi wechat,
     IMerchantService merchant,
     IWxUserService wxUserService,
     IShopService shop,
     ICardCouponService cardCoupon,
     IWeChatMsgHandler handler)
 {
     this._authService       = auth;
     this._os                = os;
     this._merchantService   = merchant;
     this._weChat            = wechat;
     this.Logger             = NullLogger.Instance;
     this._handler           = handler;
     this._wxUserService     = wxUserService;
     this._shopservice       = shop;
     this._cardCouponService = cardCoupon;
 }
Пример #6
0
 public AccessController(IOrchardServices os, IEnjoyAuthService auth)
 {
     this.OS   = os;
     this.Auth = auth;
 }
Пример #7
0
 public DashboardController(IEnjoyAuthService auth)
 {
     this.Auth = auth;
 }
Пример #8
0
 public AuthFilter(IEnjoyAuthService auth, WorkContext workContext)
 {
     this._auth        = auth;
     this._workContext = workContext;
 }