示例#1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="storage"></param>
        public QueueManager(IStorage storage, Outbox outbox)
        {
            _storage = storage;

            _outbox = outbox;

            _outbox.Load();

            _queueMap = new QueueMap(storage);

            _queueMap.Load();

            _storage.LoadQueues().ForEach(x => 
            {
                x.Load();

                _queues.TryAdd(x.Name, x);
            });
        }