Пример #1
0
 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);
        }
Пример #3
0
 public MediatorPipe(MediatorSendEndpoint endpoint, IPipe <SendContext <TMessage> > pipe)
 {
     _endpoint = endpoint;
     _pipe     = pipe;
 }
Пример #4
0
 public MediatorPipe(MediatorSendEndpoint endpoint)
 {
     _endpoint = endpoint;
     _pipe     = default;
 }