/// <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>(); }
/// <summary> /// 初始化一个<see cref="AlipayNotifyService"/>类型的实例 /// </summary> /// <param name="configProvider">配置提供器</param> public AlipayNotifyService(IAlipayConfigProvider configProvider) : base(configProvider) { }
/// <summary> /// 初始化支付宝条码支付服务 /// </summary> /// <param name="provider">支付宝配置提供器</param> public AlipayBarcodePayService(IAlipayConfigProvider provider) : base(provider) { }
/// <summary> /// 初始化一个<see cref="AlipayServiceBase"/>类型的实例 /// </summary> /// <param name="provider">支付宝配置提供器</param> protected AlipayServiceBase(IAlipayConfigProvider provider) { provider.CheckNotNull(nameof(provider)); ConfigProvider = provider; }
/// <summary> /// 初始化支付工厂 /// </summary> /// <param name="alipayConfigProvider">支付宝配置提供器</param> /// <param name="wechatpayConfigProvider">微信支付配置提供器</param> public PayFactory(IAlipayConfigProvider alipayConfigProvider, IWechatpayConfigProvider wechatpayConfigProvider) { _alipayConfigProvider = alipayConfigProvider; _wechatpayConfigProvider = wechatpayConfigProvider; }
/// <summary> /// 初始化支付宝交易撤消服务 /// </summary> /// <param name="provider">支付宝配置提供器</param> public AlipayCancelService(IAlipayConfigProvider provider) : base(provider) { }
/// <summary> /// 初始化支付宝下载对账单服务 /// </summary> /// <param name="provider">支付宝配置提供器</param> public AlipayDownloadBillService(IAlipayConfigProvider provider) : base(provider) { }
/// <summary> /// 初始化支付宝App支付服务 /// </summary> /// <param name="provider">支付宝配置提供器</param> public AlipayAppPayService(IAlipayConfigProvider provider, ILoggerFactory loggerFactory) : base(provider, loggerFactory) { }
/// <summary> /// 初始化支付宝支付服务 /// </summary> /// <param name="provider">支付宝配置提供器</param> protected AlipayServiceBase(IAlipayConfigProvider provider, ILoggerFactory loggerFactory) { provider.CheckNull(nameof(provider)); ConfigProvider = provider; Logger = loggerFactory.CreateLogger <AlipayServiceBase>(); }
/// <summary> /// 初始化支付宝支付服务 /// </summary> /// <param name="provider">支付宝配置提供器</param> protected AlipayServiceBase(IAlipayConfigProvider provider) { provider.CheckNull(nameof(provider)); ConfigProvider = provider; Logger = IocManager.GetContainer().Resolve <ILoggerFactory>().Create(DotnetConsts.LoggerName); }
/// <summary> /// 初始化支付工厂 /// </summary> /// <param name="alipayConfigProvider">支付宝配置提供器</param> public PayFactory(IAlipayConfigProvider alipayConfigProvider) { _alipayConfigProvider = alipayConfigProvider; }
protected AlipayServiceBase(IAlipayConfigProvider provider) : base(provider) { }
/// <summary> /// 初始化支付宝返回服务 /// </summary> /// <param name="configProvider">配置提供器</param> public AlipayReturnService(IAlipayConfigProvider configProvider) : base(configProvider) { }
/// <summary> /// 初始化支付工厂 /// </summary> /// <param name="alipayConfigProvider">支付宝配置提供器</param> public PayFactory(IAlipayConfigProvider alipayConfigProvider) { alipayConfigProvider.CheckNull(nameof(alipayConfigProvider)); _alipayConfigProvider = alipayConfigProvider; }
/// <summary> /// 初始化支付宝App支付服务 /// </summary> /// <param name="provider">支付宝配置提供器</param> public AlipayAppPayService(IAlipayConfigProvider provider) : base(provider) { }
/// <summary> /// 初始化支付宝支付服务 /// </summary> /// <param name="provider">支付宝配置提供器</param> protected AlipayServiceBase(IAlipayConfigProvider provider) { provider.CheckNull(nameof(provider)); _config = provider.GetConfig(); _builder = new AlipayParameterBuilder(_config); }