예제 #1
0
        public IDocumentSession OpenSession(OpenSessionOptions sessionOptions)
        {
            if (!string.IsNullOrWhiteSpace(sessionOptions.Database))
            {
                throw GetDatabaseNotSupportedException();
            }

            return(this.InnerStore.OpenSession(sessionOptions));
        }
예제 #2
0
 /// <summary>
 ///     Opens the session with the specified options.
 /// </summary>
 public IDocumentSession OpenSession(OpenSessionOptions sessionOptions)
 {
     return(server.DocumentStore.OpenSession(sessionOptions));
 }
예제 #3
0
 public IAsyncDocumentSession OpenAsyncSession(OpenSessionOptions sessionOptions)
 {
     return(_docStore.OpenAsyncSession(sessionOptions));
 }
예제 #4
0
 public abstract IDocumentSession OpenSession(OpenSessionOptions sessionOptions);
예제 #5
0
 /// <summary>
 /// Opens the session with the specified options.
 /// </summary>
 public override IDocumentSession OpenSession(OpenSessionOptions sessionOptions)
 {
     return(OpenSessionInternal(ShardStrategy.Shards.ToDictionary(x => x.Key, x => x.Value.DatabaseCommands
                                                                  .ForDatabase(sessionOptions.Database)
                                                                  .With(sessionOptions.Credentials))));
 }
예제 #6
0
 public IDocumentSession OpenSession(OpenSessionOptions sessionOptions)
 {
     return(Inner.OpenSession(sessionOptions));
 }
예제 #7
0
 public abstract IAsyncDocumentSession OpenAsyncSession(OpenSessionOptions sessionOptions);