コード例 #1
0
 public PaymentService(IExternalAuthService externalAuthService,
                       IHttpClientWrapper httpClient, IOptions <PaystackSettings> paystackSettings)
 {
     _externalAuthService = externalAuthService;
     _httpClient          = httpClient;
     _paystackSettings    = paystackSettings.Value;
 }
コード例 #2
0
 public TransactionRepositoryAsync(ApplicationDbContext dbContext,
                                   IPaymentService paymentService, IMapper mapper, IOptions <PaystackSettings> paystackSettings,
                                   IAuthenticatedUserService authenticatedUser, IAccountService accountService) : base(dbContext)
 {
     _transactions      = dbContext.Set <Transaction>();
     _paymentService    = paymentService;
     _mapper            = mapper;
     _paystackSettings  = paystackSettings.Value;
     _authenticatedUser = authenticatedUser;
     _accountService    = accountService;
 }
コード例 #3
0
 public ExternalAuthService(IOptions <PaystackSettings> paystackSettings)
 {
     _paystackSettings = paystackSettings.Value;
 }