コード例 #1
0
 // TODO: This is a lot of injected dependencies...
 public WebhookHandlerService(IPaymentHandlerSubscription paymentHandlerSubscription,
                              IPaymentHandlerCustomer paymentHandlerCustomer,
                              IPaymentHandlerInvoice paymentHandlerInvoice,
                              IPaymentHandlerEvent paymentHandlerEvent,
                              INewMemberService newMemberService,
                              IMemberAddBillingActivityService memberAddBillingActivityService,
                              IMemberSubscriptionRenewalService memberSubscriptionRenewalService,
                              IMemberCancellationService memberCancellationService,
                              IMemberSubscriptionEndedAdminEmailService memberSubscriptionEndedAdminEmailService,
                              IUserLookupService userLookupService,
                              IRepository <Member> repository,
                              AdminUpdatesWebhook webhook)
 {
     _paymentHandlerSubscription               = paymentHandlerSubscription;
     _paymentHandlerCustomer                   = paymentHandlerCustomer;
     _paymentHandlerInvoice                    = paymentHandlerInvoice;
     _paymentHandlerEvent                      = paymentHandlerEvent;
     _newMemberService                         = newMemberService;
     _memberAddBillingActivityService          = memberAddBillingActivityService;
     _memberSubscriptionRenewalService         = memberSubscriptionRenewalService;
     _memberCancellationService                = memberCancellationService;
     _memberSubscriptionEndedAdminEmailService = memberSubscriptionEndedAdminEmailService;
     _userLookupService                        = userLookupService;
     _repository = repository;
     _webhook    = webhook;
 }
コード例 #2
0
 public StripeWebhookHandler(ILogger <StripeWebhookHandler> logger,
                             IPaymentHandlerSubscription paymentHandlerSubscription,
                             IPaymentHandlerEvent paymentHandlerEvent,
                             IPaymentHandlerInvoice paymentHandlerInvoice,
                             IWebhookHandlerService webhookHandlerService)
 {
     _logger = logger;
     _paymentHandlerSubscription = paymentHandlerSubscription;
     _paymentHandlerEvent        = paymentHandlerEvent;
     _paymentHandlerInvoice      = paymentHandlerInvoice;
     _webhookHandlerService      = webhookHandlerService;
 }