public Queue(string topic,int queueId) { Topic = topic; QueueId = queueId; Key = new QueueKey(topic, queueId); _jsonSerializer = ObjectContainer.Resolve<IJsonSerializer>(); _chunkManager = new ChunkManager( "QueueChunk-" + Key.ToString(), BrokerController.Instance.Setting. }
public Queue(string topic, int queueId) { Topic = topic; QueueId = queueId; Key = new QueueKey(topic, queueId); _chunkManager = new ChunkManager("QueueChunk-" + Key.ToString(), BrokerService.Instance.Setting.QueueChunkConfig, BrokerService.Instance.Setting.IsMessageStoreMemoryMode, Topic + @"\" + QueueId); _chunkWriter = new ChunkWriter(_chunkManager); _chunkReader = new ChunkReader(_chunkManager, _chunkWriter); _queueSettingFile = Path.Combine(_chunkManager.ChunkPath, QueueSettingFileName); }
public Queue(string topic, int queueId) { Topic = topic; QueueId = queueId; Key = new QueueKey(topic, queueId); _jsonSerializer = ObjectContainer.Resolve <IJsonSerializer>(); _chunkManager = new ChunkManager(Key.ToString(), BrokerController.Instance.Setting.QueueChunkConfig, BrokerController.Instance.Setting.IsMessageStoreMemoryMode, Topic + @"\" + QueueId); _chunkWriter = new ChunkWriter(_chunkManager); _chunkReader = new ChunkReader(_chunkManager, _chunkWriter); _queueSettingFile = Path.Combine(_chunkManager.ChunkPath, QueueSettingFileName); _logger = ObjectContainer.Resolve <ILoggerFactory>().Create(this.GetType().FullName); }
public Queue(string topic, int queueId) { Topic = topic; QueueId = queueId; Key = new QueueKey(topic, queueId); _jsonSerializer = ObjectContainer.Resolve<IJsonSerializer>(); _chunkManager = new ChunkManager("QueueChunk-" + Key.ToString(), BrokerController.Instance.Setting.QueueChunkConfig, BrokerController.Instance.Setting.IsMessageStoreMemoryMode, Topic + @"\" + QueueId); _chunkWriter = new ChunkWriter(_chunkManager); _chunkReader = new ChunkReader(_chunkManager, _chunkWriter); _queueSettingFile = Path.Combine(_chunkManager.ChunkPath, QueueSettingFileName); _logger = ObjectContainer.Resolve<ILoggerFactory>().Create(this.GetType().FullName); }