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