예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AsyncDocumentSession"/> class.
 /// </summary>
 public AsyncDocumentSession(string dbName, DocumentStore documentStore,
                             IAsyncDatabaseCommands asyncDatabaseCommands,
                             DocumentSessionListeners listeners,
                             Guid id)
     : base(dbName, documentStore, listeners, id)
 {
     AsyncDatabaseCommands       = asyncDatabaseCommands;
     GenerateDocumentKeysOnStore = false;
     asyncDocumentKeyGeneration  = new AsyncDocumentKeyGeneration(this, entitiesAndMetadata.TryGetValue, (key, entity, metadata) => key);
 }