public MerchantService( IOrchardServices os, IEnjoyAuthService auth, IWeChatApi wechat) : base(os) { this.Auth = auth; this.WeChat = wechat; }
// 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; }
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; }
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(); }
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; }
public AccessController(IOrchardServices os, IEnjoyAuthService auth) { this.OS = os; this.Auth = auth; }
public DashboardController(IEnjoyAuthService auth) { this.Auth = auth; }
public AuthFilter(IEnjoyAuthService auth, WorkContext workContext) { this._auth = auth; this._workContext = workContext; }