// You must allow the injection of your config class and the Factory that create the client public EchoRetryServiceGateway( IServiceGatewayClientFactory serviceGatewayClientFactory, EchoRetryServiceGatewayClientsConfiguration configuration) { _client = serviceGatewayClientFactory.CreateServiceGatewayClient(configuration); }