Beispiel #1
0
        ISendEndpointContextSupervisor CreateTopicSendEndpointContextSupervisor(SendSettings settings)
        {
            IPipe <NamespaceContext> namespacePipe = CreateConfigureTopologyPipe(settings);

            var contextFactory = new TopicSendEndpointContextFactory(MessagingFactoryContextSupervisor, NamespaceContextSupervisor,
                                                                     Pipe.Empty <MessagingFactoryContext>(), namespacePipe, settings);

            return(new SendEndpointContextSupervisor(contextFactory));
        }
        protected virtual IAgent <SendEndpointContext> GetSendEndpointContextSource(ServiceBusHost host, SendSettings settings, BrokerTopology brokerTopology)
        {
            IPipe <NamespaceContext> pipe =
                Pipe.New <NamespaceContext>(x => x.UseFilter(new ConfigureTopologyFilter <SendSettings>(settings, brokerTopology, false)));

            var contextFactory = new TopicSendEndpointContextFactory(host.MessagingFactoryCache, host.NamespaceCache, Pipe.Empty <MessagingFactoryContext>(),
                                                                     pipe, settings);

            return(new SendEndpointContextCache(contextFactory));
        }
Beispiel #3
0
        ISendEndpointContextSupervisor CreateTopicSendEndpointContextSupervisor(SendSettings settings)
        {
            var contextFactory = new TopicSendEndpointContextFactory(ConnectionContextSupervisor, CreateSendTopologyPipe(settings), settings);

            return(CreateContextSupervisor(contextFactory));
        }