Beispiel #1
0
 public SwiftpassPayForWechatAPIController(IOptions <SwiftpassPayOptions> options
                                           , IOptions <MemberAPIOptions> memberOptions
                                           , SwiftpassPayProxy payProxy
                                           , FinanceDbContext db
                                           , WechatCoreDbContext wechatCoreDb
                                           , MemberDbContext memberDb
                                           , ILoggerFactory loggerFactory
                                           , ShopDbContext shopdb
                                           , IHostingEnvironment hostingEnvironment) : base(memberOptions, memberDb, wechatCoreDb)
 {
     this.hostingEnvironment = hostingEnvironment;
     this.options            = options.Value;
     this.db           = db;
     this.wechatCoreDb = wechatCoreDb;
     this.memberDb     = memberDb;
     this.payProxy     = payProxy;
     this._shopdb      = shopdb;
     _logger           = loggerFactory.CreateLogger <SwiftpassPayForWechatAPIController>();
 }
Beispiel #2
0
 public PayProxyFactory(WechatPayOptions wechatPayOptions, SwiftpassPayOptions swiftpassPayOptions, ILoggerFactory loggerFactory)
 {
     this.wechatPayOptions    = wechatPayOptions;
     this.swiftpassPayOptions = swiftpassPayOptions;
     this.loggerFactory       = loggerFactory;
 }
Beispiel #3
0
 public PayProxyFactory(IOptions <WechatPayOptions> wechatPayOptions, IOptions <SwiftpassPayOptions> swiftpassPayOptions, ILoggerFactory loggerFactory)
 {
     this.wechatPayOptions    = wechatPayOptions.Value;
     this.swiftpassPayOptions = swiftpassPayOptions.Value;
     this.loggerFactory       = loggerFactory;
 }