public InventoryListSubscriber(IDocumentDb readDocumentStore) { _readDocumentStore = readDocumentStore; }
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; }
public AccountManagementQueryModelUpdaterSession(IDocumentDb backingStore, ISingleContextUseGuard usageGuard, IDocumentDbSessionInterceptor interceptor) : base(backingStore, usageGuard, interceptor) { }
public AccountManagementDomainQueryModelSession(IDocumentDb backingStore, ISingleContextUseGuard usageGuard, IDocumentDbSessionInterceptor interceptor) : base(backingStore, usageGuard, interceptor) {}
protected static IDocumentDbSession OpenSession(IDocumentDb store, ISingleContextUseGuard guard = null) { return new DocumentDbSession(store, guard ?? new SingleThreadUseGuard(), NullOpDocumentDbSessionInterceptor.Instance); }
public DocumentItem(DocumentKey key, IDocumentDb backingStore, Dictionary <Type, Dictionary <string, string> > persistentValues) { _backingStore = backingStore; _persistentValues = persistentValues; Key = key; }
public InventoryListQueryHandler(IDocumentDb readDocumentStore) { _readDocumentStore = readDocumentStore; }
public AudittableDocumentDb(IDocumentDb inner, IAuditLog log) { Inner = inner; Log = log; }
//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; }
public DocumentService(IDocumentDb db) { Db = db; }
public DocumentDbWithCaching(IDocumentCache cache, IDocumentDb inner) { Cache = cache; Inner = inner; }
public static IDocumentDb WithAuditing(this IDocumentDb db, IAuditLog log = null) { return(new AudittableDocumentDb(db, log ?? new ConsoleAuditLog())); }
public static IDocumentDb WithCaching(this IDocumentDb db, IDocumentCache cache = null) { return(new DocumentDbWithCaching(cache ?? new InMemoryCache(), db)); }
protected static IDocumentDbSession OpenSession(IDocumentDb store, ISingleContextUseGuard guard = null) { return(new DocumentDbSession(store, guard ?? new SingleThreadUseGuard(), NullOpDocumentDbSessionInterceptor.Instance)); }