Пример #1
0
 /// <summary>
 /// 初始化支付宝通知服务
 /// </summary>
 /// <param name="configProvider">配置提供器</param>
 protected AlipayNotifyServiceBase(IAlipayConfigProvider configProvider)
 {
     configProvider.CheckNull(nameof(configProvider));
     _configProvider = configProvider;
     _builder        = new UrlParameterBuilder();
     _isLoad         = false;
 }
 /// <summary>
 /// 初始化支付宝通知服务
 /// </summary>
 /// <param name="configProvider">配置提供器</param>
 protected AlipayNotifyServiceBase(IAlipayConfigProvider configProvider)
 {
     configProvider.CheckNull(nameof(configProvider));
     _configProvider = configProvider;
     _builder        = new UrlParameterBuilder();
     _isLoad         = false;
     Logger          = IocManager.GetContainer().Resolve <ILogger>();
 }
Пример #3
0
 /// <summary>
 /// 初始化一个<see cref="AlipayNotifyService"/>类型的实例
 /// </summary>
 /// <param name="configProvider">配置提供器</param>
 public AlipayNotifyService(IAlipayConfigProvider configProvider) : base(configProvider)
 {
 }
Пример #4
0
 /// <summary>
 /// 初始化支付宝条码支付服务
 /// </summary>
 /// <param name="provider">支付宝配置提供器</param>
 public AlipayBarcodePayService(IAlipayConfigProvider provider) : base(provider)
 {
 }
Пример #5
0
 /// <summary>
 /// 初始化一个<see cref="AlipayServiceBase"/>类型的实例
 /// </summary>
 /// <param name="provider">支付宝配置提供器</param>
 protected AlipayServiceBase(IAlipayConfigProvider provider)
 {
     provider.CheckNotNull(nameof(provider));
     ConfigProvider = provider;
 }
Пример #6
0
 /// <summary>
 /// 初始化支付工厂
 /// </summary>
 /// <param name="alipayConfigProvider">支付宝配置提供器</param>
 /// <param name="wechatpayConfigProvider">微信支付配置提供器</param>
 public PayFactory(IAlipayConfigProvider alipayConfigProvider, IWechatpayConfigProvider wechatpayConfigProvider)
 {
     _alipayConfigProvider    = alipayConfigProvider;
     _wechatpayConfigProvider = wechatpayConfigProvider;
 }
Пример #7
0
 /// <summary>
 /// 初始化支付宝交易撤消服务
 /// </summary>
 /// <param name="provider">支付宝配置提供器</param>
 public AlipayCancelService(IAlipayConfigProvider provider) : base(provider)
 {
 }
Пример #8
0
 /// <summary>
 /// 初始化支付宝下载对账单服务
 /// </summary>
 /// <param name="provider">支付宝配置提供器</param>
 public AlipayDownloadBillService(IAlipayConfigProvider provider) : base(provider)
 {
 }
Пример #9
0
 /// <summary>
 /// 初始化支付宝App支付服务
 /// </summary>
 /// <param name="provider">支付宝配置提供器</param>
 public AlipayAppPayService(IAlipayConfigProvider provider, ILoggerFactory loggerFactory) : base(provider, loggerFactory)
 {
 }
Пример #10
0
 /// <summary>
 /// 初始化支付宝支付服务
 /// </summary>
 /// <param name="provider">支付宝配置提供器</param>
 protected AlipayServiceBase(IAlipayConfigProvider provider, ILoggerFactory loggerFactory)
 {
     provider.CheckNull(nameof(provider));
     ConfigProvider = provider;
     Logger         = loggerFactory.CreateLogger <AlipayServiceBase>();
 }
Пример #11
0
 /// <summary>
 /// 初始化支付宝支付服务
 /// </summary>
 /// <param name="provider">支付宝配置提供器</param>
 protected AlipayServiceBase(IAlipayConfigProvider provider)
 {
     provider.CheckNull(nameof(provider));
     ConfigProvider = provider;
     Logger         = IocManager.GetContainer().Resolve <ILoggerFactory>().Create(DotnetConsts.LoggerName);
 }
Пример #12
0
 /// <summary>
 /// 初始化支付工厂
 /// </summary>
 /// <param name="alipayConfigProvider">支付宝配置提供器</param>
 public PayFactory(IAlipayConfigProvider alipayConfigProvider)
 {
     _alipayConfigProvider = alipayConfigProvider;
 }
Пример #13
0
 protected AlipayServiceBase(IAlipayConfigProvider provider) : base(provider)
 {
 }
Пример #14
0
 /// <summary>
 /// 初始化支付宝返回服务
 /// </summary>
 /// <param name="configProvider">配置提供器</param>
 public AlipayReturnService(IAlipayConfigProvider configProvider) : base(configProvider)
 {
 }
Пример #15
0
 /// <summary>
 /// 初始化支付工厂
 /// </summary>
 /// <param name="alipayConfigProvider">支付宝配置提供器</param>
 public PayFactory(IAlipayConfigProvider alipayConfigProvider)
 {
     alipayConfigProvider.CheckNull(nameof(alipayConfigProvider));
     _alipayConfigProvider = alipayConfigProvider;
 }
Пример #16
0
 /// <summary>
 /// 初始化支付宝App支付服务
 /// </summary>
 /// <param name="provider">支付宝配置提供器</param>
 public AlipayAppPayService(IAlipayConfigProvider provider) : base(provider)
 {
 }
Пример #17
0
 /// <summary>
 /// 初始化支付宝支付服务
 /// </summary>
 /// <param name="provider">支付宝配置提供器</param>
 protected AlipayServiceBase(IAlipayConfigProvider provider)
 {
     provider.CheckNull(nameof(provider));
     _config  = provider.GetConfig();
     _builder = new AlipayParameterBuilder(_config);
 }