public ProjectsController(
     IProjectsApiClient projectsApiClient,
     IOptions <CustomersCanvasOptions> options)
 {
     _projectsApiClient = projectsApiClient;
     _options           = options.Value;
 }
 public StorefrontController(
     EcommerceDataService ecommerceDataService,
     IOptions <CustomersCanvasOptions> options)
 {
     _ecommerceDataService = ecommerceDataService;
     _options = options.Value;
 }
 public CustomersCanvasApiClientConfiguration(
     TokenService tokenService,
     IOptions <CustomersCanvasOptions> customersCanvasOptions)
 {
     _tokenService = tokenService;
     _options      = customersCanvasOptions.Value;
 }
Example #4
0
 public DesignsController(
     IDesignsApiClient designsApiClient,
     IDesignProcessorApiClient designProcessorApiClient,
     IOptions <CustomersCanvasOptions> customersCanvasOptions)
 {
     _designsApiClient         = designsApiClient;
     _designProcessorApiClient = designProcessorApiClient;
     _options = customersCanvasOptions.Value;
 }
 public EcommerceDataService(
     EcommerceContext dbContext,
     IProductSpecificationsApiClient productSpecificationsApiClient,
     IProductReferencesApiClient productReferencesApiClient,
     IOptions <CustomersCanvasOptions> options)
 {
     _dbContext = dbContext;
     _productSpecificationsApiClient = productSpecificationsApiClient;
     _productReferencesApiClient     = productReferencesApiClient;
     _options = options.Value;
 }
 public TokenService(IHttpClientFactory clientFactory, IOptions <CustomersCanvasOptions> customersCanvasOptions)
 {
     _client  = clientFactory.CreateClient();
     _options = customersCanvasOptions.Value;
 }