public DataStoreWriteOnly(IDocumentRepository documentRepository, IMessageAggregator messageAggregator = null)
 {
     this.messageAggregator = messageAggregator ?? DataStoreMessageAggregator.Create();
     DsConnection           = documentRepository;
     UpdateCapabilities     = new DataStoreUpdateCapabilities(DsConnection, messageAggregator);
     DeleteCapabilities     = new DataStoreDeleteCapabilities(DsConnection, messageAggregator);
     CreateCapabilities     = new DataStoreCreateCapabilities(DsConnection, messageAggregator);
 }
Example #2
0
        public DataStore(IDocumentRepository documentRepository, IMessageAggregator eventAggregator = null)
        {
            this.messageAggregator = eventAggregator ?? DataStoreMessageAggregator.Create();
            DsConnection           = documentRepository;

            QueryCapabilities  = new DataStoreQueryCapabilities(DsConnection, this.messageAggregator);
            UpdateCapabilities = new DataStoreUpdateCapabilities(DsConnection, this.messageAggregator);
            DeleteCapabilities = new DataStoreDeleteCapabilities(DsConnection, this.messageAggregator);
            CreateCapabilities = new DataStoreCreateCapabilities(DsConnection, this.messageAggregator);
        }