public IList <string> ListMongoDataBase(string datasourceCode) { DmeDataSource dmeDataSource = IsMongodbAndReturn(datasourceCode); MongodbHost host = JsonConvert.DeserializeObject <MongodbHost>(dmeDataSource.Connection); return(MongodbManager <object> .ListDataBases(host.ConnectionString)); }
public IList <string> ListMongoDataBase(string host, int port) { string connectionString = $"mongodb://{host}:{port}"; return(MongodbManager <object> .ListDataBases(connectionString)); }