Exemple #1
0
        public void Initialize(string address, bool clearSubscriptions)
        {
            var endpointAddress = Address.Parse(address);

            _messageTransport.Init(endpointAddress);
            if (clearSubscriptions)
            {
                _subscriptionStore.ClearAddressSubscriptions(endpointAddress);
            }
            foreach (var eventType in _asyncEventHandlerProvider.GetAllEventTypes())
            {
                _subscriptionStore.Subscribe(endpointAddress, eventType);
            }
        }
 void IMessageBus.Initialize()
 {
     _messageTransport.Init(InputAddress);
 }