Exemplo n.º 1
0
 public StorageActionsAccessor(QueuesStorage queuesStroage, IUuidGenerator uuidGenerator)
 {
     Items = new Dictionary<object, List<object>>();
     Queues = new QueuesStorageActions(queuesStroage.Queues);
     Messages = new MessagesStorageActions(queuesStroage.Messages, queuesStroage.PendingMessages, Queues, uuidGenerator);
     General = new GeneralStorageActions(queuesStroage.Identity);
 }
Exemplo n.º 2
0
 public StorageActionsAccessor(IUuidGenerator generator, OrderedPartCollection <AbstractDocumentCodec> documentCodecs, IDocumentCacher documentCacher, Reference <WriteBatch> writeBatchReference, Reference <SnapshotReader> snapshotReference, TableStorage storage, TransactionalStorage transactionalStorage, IBufferPool bufferPool)
 {
     Documents   = new DocumentsStorageActions(generator, documentCodecs, documentCacher, writeBatchReference, snapshotReference, storage, bufferPool);
     Indexing    = new IndexingStorageActions(storage, generator, snapshotReference, writeBatchReference, this, bufferPool);
     Queue       = new QueueStorageActions(storage, generator, snapshotReference, writeBatchReference, bufferPool);
     Lists       = new ListsStorageActions(storage, generator, snapshotReference, writeBatchReference, bufferPool);
     Tasks       = new TasksStorageActions(storage, generator, snapshotReference, writeBatchReference, bufferPool);
     Staleness   = new StalenessStorageActions(storage, snapshotReference, writeBatchReference, bufferPool);
     MapReduce   = new MappedResultsStorageActions(storage, generator, documentCodecs, snapshotReference, writeBatchReference, bufferPool);
     Attachments = new AttachmentsStorageActions(storage.Attachments, writeBatchReference, snapshotReference, generator, storage, transactionalStorage, bufferPool);
     General     = new GeneralStorageActions(storage, writeBatchReference, snapshotReference, bufferPool);
 }