public MediatorSendEndpoint(IReceiveEndpointConfiguration configuration, IReceivePipeDispatcher dispatcher, ILogContext logContext,
                             SendObservable sendObservers, IReceiveEndpointConfiguration sourceConfiguration, IReceivePipeDispatcher sourceDispatcher)
     : this(configuration, dispatcher, logContext, sendObservers)
 {
     _sourceAddress  = sourceConfiguration.InputAddress;
     _sourceEndpoint = new MediatorSendEndpoint(sourceConfiguration, sourceDispatcher, logContext, sendObservers);
 }
示例#2
0
        public Mediator(ILogContext logContext, IReceiveEndpointConfiguration configuration, IReceivePipeDispatcher dispatcher,
                        IInMemoryReceiveEndpointConfiguration responseConfiguration, IReceivePipeDispatcher responseDispatcher)
        {
            var sendObservable = new SendObservable();

            _endpoint = new MediatorSendEndpoint(configuration, dispatcher, logContext, sendObservable, responseConfiguration, responseDispatcher);

            var clientFactoryContext = new MediatorClientFactoryContext(_endpoint, responseConfiguration.ConsumePipe, responseConfiguration.InputAddress);

            _clientFactory = new ClientFactory(clientFactoryContext);
        }
 public MediatorPipe(MediatorSendEndpoint endpoint, IPipe <SendContext <TMessage> > pipe)
 {
     _endpoint = endpoint;
     _pipe     = pipe;
 }
 public MediatorPipe(MediatorSendEndpoint endpoint)
 {
     _endpoint = endpoint;
     _pipe     = default;
 }