Exemple #1
0
        protected ConsumeTopology()
        {
            _messageTypes = new ConcurrentDictionary <Type, IMessageConsumeTopologyConfigurator>();

            _observers = new ConsumeTopologyConfigurationObservable();

            _conventions = new List <IMessageConsumeTopologyConvention>();
            _observers.Connect(this);
        }
        protected ConsumeTopology(int maxQueueNameLength = 1024)
        {
            _maxQueueNameLength = maxQueueNameLength;
            _messageTypes       = new ConcurrentDictionary <Type, IMessageConsumeTopologyConfigurator>();

            _observers = new ConsumeTopologyConfigurationObservable();

            _conventions = new List <IMessageConsumeTopologyConvention>();
            _observers.Connect(this);
        }