FromConnectionStringBuilder() public static method

Gets a MongoServerSettings object intialized with values from a MongoConnectionStringBuilder.
public static FromConnectionStringBuilder ( MongoConnectionStringBuilder builder ) : MongoServerSettings
builder MongoConnectionStringBuilder The MongoConnectionStringBuilder.
return MongoServerSettings
Ejemplo n.º 1
0
        public static MongoDatabase Create(MongoConnectionStringBuilder builder)
        {
            var serverSettings = MongoServerSettings.FromConnectionStringBuilder(builder);
            var databaseName   = builder.DatabaseName;

            return(Create(serverSettings, databaseName));
        }
Ejemplo n.º 2
0
 public static MongoServer Create(MongoConnectionStringBuilder builder)
 {
     return(Create(MongoServerSettings.FromConnectionStringBuilder(builder)));
 }
Ejemplo n.º 3
0
 public MongoServerSettings ToServerSettings()
 {
     return(MongoServerSettings.FromConnectionStringBuilder(this));
 }