public CustomersController(ILoggerFactory loggerFactory , IRequestClientFactory getClientFactory ) : base(loggerFactory) { this.getClientFactory = getClientFactory; }
public async Task Setup() { _factory = await Host.CreateRequestClientFactory <A, B>(InputQueueAddress, TimeSpan.FromSeconds(8), TimeSpan.FromSeconds(8)); _requestClient = new MessageRequestClient <PingMessage, PongMessage>(Bus, InputQueueAddress, TimeSpan.FromSeconds(8), TimeSpan.FromSeconds(8)); _response = _requestClient.Request(new PingMessage()); }
public ShoppingCartsController(ILoggerFactory loggerFactory, IRequestClientFactory clientFactory) : base(loggerFactory) { this.clientFactory = clientFactory; }
public ProductsController(IRequestClientFactory clientFactory, ILoggerFactory loggerFactory) : base(loggerFactory) { this.client = clientFactory.Create <GetAllProductsRequest, GetAllProductsResponse>(); }