コード例 #1
0
 public InventoryListSubscriber(IDocumentDb readDocumentStore)
 {
     _readDocumentStore = readDocumentStore;
 }
コード例 #2
0
 public PlanTriggerLogic(IDocumentDb documentDb, ITwillioLogic twillioLogic)
 {
     _documentDb   = documentDb;
     _twillioLogic = twillioLogic;
 }
 public DocumentItem(DocumentKey key, IDocumentDb backingStore, Dictionary<Type, Dictionary<string, string>> persistentValues)
 {
     _backingStore = backingStore;
     _persistentValues = persistentValues;
     Key = key;
 }
コード例 #4
0
 public AccountManagementQueryModelUpdaterSession(IDocumentDb backingStore, ISingleContextUseGuard usageGuard, IDocumentDbSessionInterceptor interceptor)
     : base(backingStore, usageGuard, interceptor)
 {
 }
 public AccountManagementDomainQueryModelSession(IDocumentDb backingStore, ISingleContextUseGuard usageGuard, IDocumentDbSessionInterceptor interceptor)
     : base(backingStore, usageGuard, interceptor) {}
コード例 #6
0
 protected static IDocumentDbSession OpenSession(IDocumentDb store, ISingleContextUseGuard guard = null)
 {
     return new DocumentDbSession(store, guard ?? new SingleThreadUseGuard(), NullOpDocumentDbSessionInterceptor.Instance);
 }
コード例 #7
0
 public DocumentItem(DocumentKey key, IDocumentDb backingStore, Dictionary <Type, Dictionary <string, string> > persistentValues)
 {
     _backingStore     = backingStore;
     _persistentValues = persistentValues;
     Key = key;
 }
コード例 #8
0
 public InventoryListQueryHandler(IDocumentDb readDocumentStore)
 {
     _readDocumentStore = readDocumentStore;
 }
コード例 #9
0
 public AudittableDocumentDb(IDocumentDb inner, IAuditLog log)
 {
     Inner = inner;
     Log   = log;
 }
コード例 #10
0
 //Review:mlidbo: Always requiring an interceptor causes a lot of unneeded complexity for clients. Consider creating a virtual void OnFirstLoad(T document) method instead. This would allow for inheriting this class to create "interceptable" sessions. Alternatively maybe an observable/event could be used somehow.
 public DocumentDbSession(IDocumentDb backingStore, ISingleContextUseGuard usageGuard, IDocumentDbSessionInterceptor interceptor)
 {
     UsageGuard   = usageGuard;
     BackingStore = backingStore;
     Interceptor  = interceptor;
 }
コード例 #11
0
 public DocumentService(IDocumentDb db)
 {
     Db = db;
 }
コード例 #12
0
 public DocumentDbWithCaching(IDocumentCache cache, IDocumentDb inner)
 {
     Cache = cache;
     Inner = inner;
 }
コード例 #13
0
 public static IDocumentDb WithAuditing(this IDocumentDb db, IAuditLog log = null)
 {
     return(new AudittableDocumentDb(db, log ?? new ConsoleAuditLog()));
 }
コード例 #14
0
 public static IDocumentDb WithCaching(this IDocumentDb db, IDocumentCache cache = null)
 {
     return(new DocumentDbWithCaching(cache ?? new InMemoryCache(), db));
 }
コード例 #15
0
 protected static IDocumentDbSession OpenSession(IDocumentDb store, ISingleContextUseGuard guard = null)
 {
     return(new DocumentDbSession(store, guard ?? new SingleThreadUseGuard(), NullOpDocumentDbSessionInterceptor.Instance));
 }