Exemplo n.º 1
0
 public ShopPartSetAPIController(ICommunityService communityService
                                 , IOptions <MemberAPIOptions> options
                                 , IOptions <WechatOpenOptions> wechatOpenOptions
                                 , ShopDbContext db
                                 , MemberDbContext memberDb
                                 , IHostingEnvironment hostingEnvironment)
     : base(options, db, memberDb)
 {
     this.db = db;
     this.hostingEnvironment = hostingEnvironment;
     this.wechatOpenOptions  = wechatOpenOptions.Value;
 }
Exemplo n.º 2
0
 public ShopWechatOpenSetController(IOptions <MemberAPIOptions> options
                                    , ShopDbContext db
                                    , MemberDbContext memberDb
                                    , IOptions <WechatOpenOptions> wechatOpenOptions
                                    , ILoggerFactory loggerFactory
                                    , IHostingEnvironment hostingEnvironment)
     : base(options, db, memberDb)
 {
     this.hostingEnvironment = hostingEnvironment;
     this.wechatOpenOptions  = wechatOpenOptions.Value;
     logger = loggerFactory.CreateLogger <ShopWechatOpenSetController>();
 }
Exemplo n.º 3
0
 public ShopWechatOpenController(IOptions <MemberAPIOptions> memberOptions
                                 , ShopDbContext db
                                 , WechatCoreDbContext wechatCoreDb
                                 , IOptions <WechatOpenOptions> wechatOpenOptions
                                 , MemberDbContext memberDb
                                 , ILoggerFactory loggerFactory
                                 , IHostingEnvironment hostingEnvironment) : base(memberOptions, memberDb, wechatCoreDb)
 {
     this.hostingEnvironment = hostingEnvironment;
     this.wechatOpenOptions  = wechatOpenOptions.Value;
     this.db = db;
     _logger = loggerFactory.CreateLogger <ShopWechatOpenController>();
 }
Exemplo n.º 4
0
 /// <summary>
 /// 退款
 /// </summary>
 /// <param name="communityService"></param>
 /// <param name="options"></param>
 /// <param name="wechatOpenOptions"></param>
 /// <param name="db"></param>
 /// <param name="memberDb"></param>
 /// <param name="hostingEnvironment"></param>
 public ShopOrderRefundAPIController(ICommunityService communityService
                                     , IOptions <MemberAPIOptions> options
                                     , IOptions <WechatOpenOptions> wechatOpenOptions
                                     , ShopDbContext db
                                     , FinanceDbContext financeDb
                                     , ILoggerFactory loggerFactory
                                     , PayProxyFactory proxyFactory
                                     , MemberDbContext memberDb
                                     , IHostingEnvironment hostingEnvironment)
     : base(options, db, memberDb)
 {
     this.db = db;
     this.hostingEnvironment = hostingEnvironment;
     this.wechatOpenOptions  = wechatOpenOptions.Value;
     this.proxyFactory       = proxyFactory;
     this.financeDb          = financeDb;
     _logger = loggerFactory.CreateLogger <ShopOrderRefundAPIController>();
 }
Exemplo n.º 5
0
 public WechatOpenOAuthController(IHostingEnvironment hostingEnvironment, IOptions <WechatOpenOptions> wechatOpenOptions)
 {
     this.hostingEnvironment = hostingEnvironment;
     this.options            = wechatOpenOptions.Value;
 }