public InMemoryReceiveEndpointContext(IInMemoryReceiveEndpointConfiguration configuration, ISendTransportProvider sendTransportProvider)
            : base(configuration)
        {
            _sendTransportProvider = sendTransportProvider;

            _publish = configuration.Topology.Publish;
        }
        public InMemoryReceiveEndpointContext(IInMemoryReceiveEndpointConfiguration configuration, ISendTransportProvider sendTransportProvider,
                                              ReceiveObservable receiveObservers, ReceiveTransportObservable transportObservers, ReceiveEndpointObservable endpointObservers)
            : base(configuration, receiveObservers, transportObservers, endpointObservers)
        {
            _sendTransportProvider = sendTransportProvider;

            _publish = configuration.Topology.Publish;
        }
Exemplo n.º 3
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 InMemoryReceiveEndpointBuilder(IInMemoryHostConfiguration hostConfiguration, IInMemoryReceiveEndpointConfiguration configuration)
     : base(configuration)
 {
     _hostConfiguration = hostConfiguration;
     _configuration     = configuration;
 }
Exemplo n.º 5
0
 public InMemoryReceiveEndpointContext(IInMemoryHostConfiguration hostConfiguration, IInMemoryReceiveEndpointConfiguration configuration)
     : base(hostConfiguration, configuration)
 {
     _hostConfiguration = hostConfiguration;
 }