public ICanAddEndpointOrLoggingOrCorrelationOrCreate <TMessage, TCommand, TEvent, TRequest, TResponse> WithClientEndpoints(IServiceEndpointProvider <TMessage, TCommand, TEvent, TRequest, TResponse> serviceEndpointProvider) { _endpointClients.Add(serviceEndpointProvider.CreateEndpointClient()); return(this); }
public ICanAddEndpointOrCreate WithEndpoints(IServiceEndpointProvider serviceEndpointProvider) { _endpointClients.Add(serviceEndpointProvider.CreateEndpointClient()); _endpoints.Add(serviceEndpointProvider.CreateEndpoint()); return(this); }