예제 #1
0
 public DashboardEMailHelper(
     IOptionsMonitor <DashboardOptions> optionsMonitor,
     IFulfillmentClient fulfillmentClient)
 {
     this.fulfillmentClient = fulfillmentClient;
     this.options           = optionsMonitor.CurrentValue;
 }
 public FulfillmentManager(
     IFulfillmentClient fulfillmentClient,
     ILogger <FulfillmentManager> logger)
 {
     this.fulfillmentClient = fulfillmentClient;
     this.logger            = logger;
 }
예제 #3
0
 public WebhookProcessor(IOptionsMonitor <SecuredFulfillmentClientConfiguration> options,
                         IFulfillmentClient fulfillmentClient,
                         IWebhookHandler webhookHandler,
                         ILogger <WebhookProcessor> logger) : this(options.CurrentValue,
                                                                   fulfillmentClient,
                                                                   webhookHandler,
                                                                   logger)
 {
 }
 public SubscriptionsController(
     IFulfillmentClient fulfillmentClient,
     IOperationsStore operationsStore,
     IOptionsMonitor <DashboardOptions> options)
 {
     this.fulfillmentClient = fulfillmentClient;
     this.operationsStore   = operationsStore;
     this.options           = options.CurrentValue;
 }
예제 #5
0
 public WebhookProcessor(
     IFulfillmentClient fulfillmentClient,
     ILogger <WebhookProcessor> logger,
     ISubscriptionService subscriptionService)
 {
     this.fulfillmentClient    = fulfillmentClient ?? throw new ArgumentNullException(nameof(fulfillmentClient));
     this._logger              = logger ?? throw new ArgumentNullException(nameof(logger));
     this._subscriptionService = subscriptionService ?? throw new ArgumentNullException(nameof(subscriptionService));
 }
예제 #6
0
 public FulfillmentHandler(
     IFulfillmentClient fulfillmentClient,
     IMarketplaceNotificationHandler notificationHandler,
     IOptionsMonitor <DashboardOptions> optionsMonitor,
     ILogger <FulfillmentHandler> logger)
 {
     this.options             = optionsMonitor.CurrentValue;
     this.fulfillmentClient   = fulfillmentClient;
     this.notificationHandler = notificationHandler;
     this.logger = logger;
 }
예제 #7
0
 public LandingPageController(
     IOptionsMonitor <DashboardOptions> dashboardOptions,
     IFulfillmentClient fulfillmentClient,
     IMarketplaceNotificationHandler notificationHandler,
     ILogger <LandingPageController> logger)
 {
     this.fulfillmentClient   = fulfillmentClient;
     this.notificationHandler = notificationHandler;
     this.logger  = logger;
     this.options = dashboardOptions.CurrentValue;
 }
예제 #8
0
        public WebhookProcessor(
            SecuredFulfillmentClientConfiguration options,
            IFulfillmentClient fulfillmentClient,
            IWebhookHandler webhookHandler,
            ILogger <WebhookProcessor> logger)
        {
            this.options = options;

            this.fulfillmentClient = fulfillmentClient;
            this.logger            = logger;
            this.webhookHandler    = webhookHandler;
        }
예제 #9
0
        public ProvisioningService(ISqlDbContext sqlDbContext, IProvisioningClient provisioningClient,
                                   IFulfillmentClient fulfillmentclient, IIpAddressService ipAddressService,
                                   ISubscriptionParameterService subscriptionParameterService, IArmTemplateParameterService armTemplateParameterService,
                                   IWebhookParameterService webhookParameterService, IStorageUtility storageUtility, ILogger <ProvisioningService> logger)
        {
            _context                      = sqlDbContext ?? throw new ArgumentNullException(nameof(sqlDbContext));
            _provisioningClient           = provisioningClient ?? throw new ArgumentNullException(nameof(provisioningClient));
            _fulfillmentClient            = fulfillmentclient ?? throw new ArgumentNullException(nameof(fulfillmentclient));
            _ipAddressService             = ipAddressService ?? throw new ArgumentNullException(nameof(ipAddressService));
            _subscriptionParameterService = subscriptionParameterService ?? throw new ArgumentNullException(nameof(subscriptionParameterService));
            _armTemplateParameterService  = armTemplateParameterService ?? throw new ArgumentNullException(nameof(armTemplateParameterService));
            _webhookParameterService      = webhookParameterService ?? throw new ArgumentNullException(nameof(webhookParameterService));
            _storageUtility               = storageUtility ?? throw new ArgumentNullException(nameof(storageUtility));
            _logger = logger ?? throw new ArgumentNullException(nameof(logger));

            //TODO: add the app settings.
            _maxRetry = 3;
        }
예제 #10
0
 public ContosoWebhookHandler(ISubscriptionManager subscriptionManager, ILogger <ContosoWebhookHandler> logger, IFulfillmentClient fulfillmentClient)
 {
     this.subscriptionManager = subscriptionManager;
     this.logger            = logger;
     this.fulfillmentClient = fulfillmentClient;
 }
 public MailLinkController(IFulfillmentClient fulfillmentClient)
 {
     this.fulfillmentClient = fulfillmentClient;
 }
예제 #12
0
 public FulfillmentManager(IFulfillmentClient fulfillmentClient, ILogger <FulfillmentManager> logger)
 {
     _fulfillmentClient = fulfillmentClient ?? throw new ArgumentNullException(nameof(fulfillmentClient));
     _logger            = logger ?? throw new ArgumentNullException(nameof(logger));
 }