Exemplo n.º 1
0
 public CustomerCreatedEventHandler(
     EventHandlerLogger <CustomerCreatedEventHandler, CustomerCreatedEvent> logger,
     IFaultHandlingHttpClient httpClient,
     ICustomerRepository repository,
     ExternalApis apis, ITracer tracer)
 {
     this.logger     = logger;
     this.httpClient = httpClient;
     this.repository = repository;
     this.apis       = apis;
     this.tracer     = tracer;
 }
 public OrdersController(ILogger <OrdersController> logger
                         , IMessageProducer messageProducer
                         , ExternalApis apis
                         , IFaultHandlingHttpClient httpClient
                         , IOrderRepository repository
                         , ICustomerRepository customerRepository
                         , ITracer tracer)
 {
     this.logger             = logger;
     this.messageProducer    = messageProducer;
     this.apis               = apis;
     this.httpClient         = httpClient;
     this.repository         = repository;
     this.customerRepository = customerRepository;
     this.tracer             = tracer;
 }