/// <summary>
 /// Initializes a new instance of the <see cref="ContosoWebhookHandler"/> class.
 /// </summary>
 /// <param name="notificationHelper">Custom handler for notifications.</param>
 /// <param name="marketplaceClient">Marketplace client.</param>
 public ContosoWebhookHandler(
     IMarketplaceNotificationHandler notificationHelper,
     IMarketplaceSaaSClient marketplaceClient)
 {
     this.notificationHelper = notificationHelper;
     this.marketplaceClient  = marketplaceClient;
 }
Exemple #2
0
 public LandingPageController(
     IOptionsMonitor <DashboardOptions> dashboardOptions,
     IFulfillmentHandler fulfillmentHandler,
     IMarketplaceNotificationHandler notificationHelper,
     ILogger <LandingPageController> logger)
 {
     this.fulfillmentHandler = fulfillmentHandler;
     this.logger             = logger;
     this.options            = dashboardOptions.CurrentValue;
 }
 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;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="LandingPageController"/> class.
        /// </summary>
        /// <param name="commandCenterOptions">Options.</param>
        /// <param name="marketplaceProcessor">Marketplace processor.</param>
        /// <param name="notificationHandler">Notification handler.</param>
        /// <param name="marketplaceClient">Marketplace client.</param>
        /// <param name="logger">Logger.</param>
        public LandingPageController(
            IOptionsMonitor <CommandCenterOptions> commandCenterOptions,
            IMarketplaceProcessor marketplaceProcessor,
            IMarketplaceNotificationHandler notificationHandler,
            IMarketplaceSaaSClient marketplaceClient,
            ILogger <LandingPageController> logger)
        {
            if (commandCenterOptions == null)
            {
                throw new ArgumentNullException(nameof(commandCenterOptions));
            }

            this.marketplaceProcessor = marketplaceProcessor;
            this.notificationHandler  = notificationHandler;
            this.marketplaceClient    = marketplaceClient;
            this.logger  = logger;
            this.options = commandCenterOptions.CurrentValue;
        }
Exemple #5
0
 public ContosoWebhookHandler(IMarketplaceNotificationHandler notificationHelper)
 {
     this.notificationHelper = notificationHelper;
 }