コード例 #1
0
 public ParbadVirtualGateway(
     IHttpContextAccessor httpContextAccessor,
     IOptions <ParbadVirtualGatewayOptions> options,
     IGatewayAccountProvider <ParbadVirtualGatewayAccount> accountProvider,
     IOptions <MessagesOptions> messageOptions) : base(accountProvider)
 {
     _httpContextAccessor = httpContextAccessor;
     _options             = options;
     _messageOptions      = messageOptions;
 }
コード例 #2
0
 public AsanPardakhtGateway(
     IHttpContextAccessor httpContextAccessor,
     IHttpClientFactory httpClientFactory,
     IGatewayAccountProvider <AsanPardakhtGatewayAccount> accountProvider,
     IOptions <MessagesOptions> messageOptions) : base(accountProvider)
 {
     _httpContextAccessor = httpContextAccessor;
     _httpClient          = httpClientFactory.CreateClient(this);
     _messageOptions      = messageOptions;
 }
コード例 #3
0
 /// <summary>
 /// Initializes an instance of <see cref="SepehrGateway"/>.
 /// </summary>
 public SepehrGateway(
     IGatewayAccountProvider <SepehrGatewayAccount> accountProvider,
     IHttpContextAccessor httpContextAccessor,
     IHttpClientFactory httpClientFactory,
     IOptions <ParbadOptions> options) : base(accountProvider)
 {
     _httpContextAccessor = httpContextAccessor;
     _httpClient          = httpClientFactory.CreateClient(this);
     _options             = options.Value;
 }
コード例 #4
0
ファイル: ZarinPalGateway.cs プロジェクト: alirezavafi/Parbad
 public ZarinPalGateway(
     IGatewayAccountProvider <ZarinPalGatewayAccount> accountProvider,
     IHttpContextAccessor httpContextAccessor,
     IHttpClientFactory httpClientFactory,
     IOptions <ZarinPalGatewayOptions> gatewayOptions,
     IOptions <MessagesOptions> messagesOptions) : base(accountProvider)
 {
     _httpContextAccessor = httpContextAccessor;
     _httpClient          = httpClientFactory.CreateClient(this);
     _gatewayOptions      = gatewayOptions.Value;
     _messagesOptions     = messagesOptions;
 }
コード例 #5
0
ファイル: ZibalGateway.cs プロジェクト: mehregan9000/Parbad
 public ZibalGateway(
     IGatewayAccountProvider <ZibalGatewayAccount> accountProvider,
     IHttpContextAccessor httpContextAccessor,
     IHttpClientFactory httpClientFactory,
     IOptions <ZibalGatewayOptions> gatewayOptions,
     IOptions <ParbadOptions> options) : base(accountProvider)
 {
     _httpContextAccessor = httpContextAccessor;
     _httpClient          = httpClientFactory.CreateClient(Name);
     _gatewayOptions      = gatewayOptions.Value;
     _options             = options.Value;
 }
コード例 #6
0
ファイル: FanAvaGateway.cs プロジェクト: mehregan9000/Parbad
 public FanAvaGateway(
     IGatewayAccountProvider <FanAvaGatewayAccount> accountProvider,
     IHttpContextAccessor httpContextAccessor,
     IHttpClientFactory httpClientFactory,
     IOptions <FanAvaGatewayOptions> gatewayOptions,
     IOptions <MessagesOptions> messageOptions) : base(accountProvider)
 {
     _httpContextAccessor = httpContextAccessor;
     _httpClient          = httpClientFactory.CreateClient(nameof(FanAvaGateway));
     _gatewayOptions      = gatewayOptions.Value;
     _messageOptions      = messageOptions.Value;
 }
コード例 #7
0
 public PasargadGateway(
     IHttpContextAccessor httpContextAccessor,
     IHttpClientFactory httpClientFactory,
     IGatewayAccountProvider <PasargadGatewayAccount> accountProvider,
     IPasargadCrypto crypto,
     IOptions <PasargadGatewayOptions> gatewayOptions,
     IOptions <MessagesOptions> messageOptions) : base(accountProvider)
 {
     _httpContextAccessor = httpContextAccessor;
     _httpClient          = httpClientFactory.CreateClient(this);
     _crypto         = crypto;
     _gatewayOptions = gatewayOptions.Value;
     _messageOptions = messageOptions;
 }
コード例 #8
0
ファイル: GatewayBase.cs プロジェクト: productivesys/Parbad
 protected GatewayBase(IGatewayAccountProvider <TAccount> accountProvider)
 {
     AccountProvider = accountProvider;
 }
コード例 #9
0
 public PayIrGateway(IGatewayAccountProvider <PayIrGatewayAccount> accountProvider) : base(accountProvider)
 {
 }