Example #1
0
        protected override IPublishEndpointProvider CreatePublishSendEndpointProvider()
        {
            var sendEndpointProvider = new PublishSendEndpointProvider(MessageSerializer, _inputAddress, _hosts);

            var endpointCache = new SendEndpointCache(sendEndpointProvider);

            return(new ServiceBusPublishEndpointProvider(_hosts[0], endpointCache));
        }
        protected override IPublishEndpointProvider CreatePublishSendEndpointProvider()
        {
            var sendEndpointProvider = new PublishSendEndpointProvider(MessageSerializer, _inputAddress, _hosts);

            var endpointCache = new SendEndpointCache(sendEndpointProvider);

            return new ServiceBusPublishEndpointProvider(_hosts[0], endpointCache);
        }
        public IPublishEndpointProvider CreatePublishEndpointProvider(Uri sourceAddress, params IPublishPipeSpecification[] specifications)
        {
            var provider = new PublishSendEndpointProvider(MessageSerializer, sourceAddress, _host);

            var cache = new SendEndpointCache(provider, TopicCacheDurationProvider);

            var pipe = CreatePublishPipe(specifications);

            return(new ServiceBusPublishEndpointProvider(_host, cache, pipe));
        }
        public override IPublishEndpointProvider CreatePublishEndpointProvider(params IPublishPipeSpecification[] specifications)
        {
            var provider = new PublishSendEndpointProvider(MessageSerializer, InputAddress, _hosts);

            var cache = new SendEndpointCache(provider);

            var pipe = CreatePublishPipe(specifications);

            return(new ServiceBusPublishEndpointProvider(_hosts[0], cache, pipe));
        }
        public override IPublishEndpointProvider CreatePublishEndpointProvider(params IPublishPipeSpecification[] specifications)
        {
            var provider = new PublishSendEndpointProvider(MessageSerializer, InputAddress, _hosts);

            var cache = new SendEndpointCache(provider, TopicCacheDurationProvider);

            var pipe = CreatePublishPipe(specifications);

            return new ServiceBusPublishEndpointProvider(_hosts[0], cache, pipe);
        }
        IPublishEndpointProvider CreatePublishEndpointProvider()
        {
            var provider = new PublishSendEndpointProvider(_serializer, InputAddress, _host);

            return(new ServiceBusPublishEndpointProvider(_host, provider, _publishPipe, _publish, _serializer, InputAddress));
        }