public ISendEndpointContextSupervisor CreateSendEndpointContextSupervisor(SendSettings settings)
        {
            var configureTopology = new ConfigureTopologyFilter <SendSettings>(settings, settings.GetBrokerTopology(), false, Stopping);

            var contextFactory = new SendEndpointContextFactory(this, configureTopology.ToPipe <SendEndpointContext>(), settings);

            var contextSupervisor = new SendEndpointContextSupervisor(contextFactory);

            Add(contextSupervisor);

            return(contextSupervisor);
        }
Example #2
0
        public ISendEndpointContextSupervisor CreateSendEndpointContextSupervisor(SendSettings settings)
        {
            LogContext.SetCurrentIfNull(_hostConfiguration.LogContext);

            var configureTopology = new ConfigureTopologyFilter <SendSettings>(settings, settings.GetBrokerTopology(), false, Stopping);

            var contextFactory = new SendEndpointContextFactory(this, configureTopology.ToPipe <SendEndpointContext>(), settings);

            var contextSupervisor = new SendEndpointContextSupervisor(contextFactory);

            AddSendAgent(contextSupervisor);

            return(contextSupervisor);
        }