예제 #1
0
        public PersistentTransport(IBusConfiguration configuration, ITransport innerTransport, IPeerDirectory peerDirectory, IMessageSendingStrategy messageSendingStrategy)
        {
            _configuration          = configuration;
            _isPersistent           = configuration.IsPersistent;
            _innerTransport         = innerTransport;
            _peerDirectory          = peerDirectory;
            _messageSendingStrategy = messageSendingStrategy;

            SetInitialPhase();

            _innerTransport.MessageReceived += OnTransportMessageReceived;
        }
예제 #2
0
파일: Bus.cs 프로젝트: pascally/Zebus
 public Bus(ITransport transport, IPeerDirectory directory, IMessageSerializer serializer, IMessageDispatcher messageDispatcher, IMessageSendingStrategy messageSendingStrategy, IStoppingStrategy stoppingStrategy, IBindingKeyPredicateBuilder predicateBuilder)
 {
     _transport = transport;
     _transport.MessageReceived += OnTransportMessageReceived;
     _directory              = directory;
     _directory.PeerUpdated += OnPeerUpdated;
     _serializer             = serializer;
     _messageDispatcher      = messageDispatcher;
     _messageSendingStrategy = messageSendingStrategy;
     _stoppingStrategy       = stoppingStrategy;
     _predicateBuilder       = predicateBuilder;
 }
예제 #3
0
파일: Bus.cs 프로젝트: ape-box/Zebus
 public Bus(ITransport transport,
            IPeerDirectory directory,
            IMessageSerializer serializer,
            IMessageDispatcher messageDispatcher,
            IMessageSendingStrategy messageSendingStrategy,
            IStoppingStrategy stoppingStrategy,
            IBusConfiguration configuration)
 {
     _transport = transport;
     _transport.MessageReceived += OnTransportMessageReceived;
     _directory              = directory;
     _directory.PeerUpdated += OnPeerUpdated;
     _directory.PeerSubscriptionsUpdated += DispatchSubscriptionsUpdatedMessages;
     _serializer        = serializer;
     _messageDispatcher = messageDispatcher;
     _messageDispatcher.MessageHandlerInvokersUpdated += MessageDispatcherOnMessageHandlerInvokersUpdated;
     _messageSendingStrategy = messageSendingStrategy;
     _stoppingStrategy       = stoppingStrategy;
     _configuration          = configuration;
 }