public StoreCatalogController(HttpClient httpClient, IConfiguration configuration, StoreContext storeContext,
                                      ISendMessageServiceBus sendMessageServiceBus, IProductService productService, ILogServiceBus logServiceBus)
        {
            _httpClient    = httpClient ?? throw new ArgumentNullException(nameof(httpClient));
            _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
            _context       = storeContext ?? throw new ArgumentNullException(nameof(storeContext));

            _sendMessageServiceBus = sendMessageServiceBus;
            _productService        = productService;
            _logServiceBus         = logServiceBus;
        }
 public StoreCatalogInitialization(IConfiguration configuration, HttpClient httpClient,
                                   IProductionAreaService productionAreaService,
                                   IProductService productService,
                                   ISendMessageServiceBus sendMessageServiceBus,
                                   IProductRepository productRepository,
                                   IProductionAreaRepository productionAreaRepository,
                                   ILogServiceBus logServiceBus)
 {
     _configuration            = configuration;
     _httpClient               = httpClient;
     _productionAreaService    = productionAreaService;
     _productService           = productService;
     _sendMessageServiceBus    = sendMessageServiceBus;
     _productRepository        = productRepository;
     _productionAreaRepository = productionAreaRepository;
     _logServiceBus            = logServiceBus;
 }
Beispiel #3
0
 public ProdutoNegocio(IServiceBus serviceBus, IConfiguration configuration, ILogServiceBus logServiceBus)
 {
     _serviceBus    = serviceBus;
     _configuration = configuration;
     _logServiceBus = logServiceBus;
 }
 public ProductService(IConfiguration configuration, HttpClient httpClient, ILogServiceBus logServiceBus)
 {
     _configuration = configuration;
     _httpClient    = httpClient;
     _logServiceBus = logServiceBus;
 }
Beispiel #5
0
 /// <summary>
 /// Criar um novo objeto do produtoNegogio
 /// </summary>
 public LabelController(IProdutoNegocio produtoNegocio, IServiceBus serviceBus, ILogServiceBus logServiceBus)
 {
     _produtoNegocio = produtoNegocio;
     _serviceBus     = serviceBus;
     _logServiceBus  = logServiceBus;
 }
Beispiel #6
0
 public ServiceBus(IConfiguration configuration, ILogServiceBus logServiceBus)
 {
     _configuration = configuration;
     _logServiceBus = logServiceBus;
 }