예제 #1
0
        public SendEndpointProvider(ISendTransportProvider provider, SendObservable observers, IMessageSerializer serializer, Uri sourceAddress,
                                    ISendPipe sendPipe)
        {
            _provider      = provider;
            _serializer    = serializer;
            _sourceAddress = sourceAddress;
            _sendPipe      = sendPipe;

            _cache     = SendEndpointCacheFactory.Create <Uri>();
            _observers = observers;
        }
예제 #2
0
        public PublishEndpointProvider(IPublishTransportProvider transportProvider, Uri hostAddress, PublishObservable publishObservers,
                                       IMessageSerializer serializer, Uri sourceAddress, IPublishPipe publishPipe, IPublishTopology publishTopology)
        {
            _transportProvider = transportProvider;
            _hostAddress       = hostAddress;
            _serializer        = serializer;
            _sourceAddress     = sourceAddress;
            _publishTopology   = publishTopology;
            _publishObservers  = publishObservers;

            _sendPipe = new PipeAdapter(publishPipe);

            _cache = SendEndpointCacheFactory.Create <Type>();
        }