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; }
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; }
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; }