private GetConnections ( [ ensureIdentical = null, |
||
ensureIdentical | [ | |
cancellationToken | ||
Результат | Task |
public Task <IEnumerable <LoadBalancedConnection> > GetConnections( [NotNull] string database, [CanBeNull] bool?ensureIdentical = null, CancellationToken cancellationToken = default(CancellationToken)) { if (database == null) { throw new ArgumentNullException("database"); } DatabaseElement db = Databases[database]; if ((db == null) || (!db.Enabled)) { return(TaskResult <IEnumerable <LoadBalancedConnection> > .FromException( new LoggingException( () => Resources.DatabaseConfiguration_GetSqlProgram_DatabaseIdNotFound, database))); } return(db.GetConnections(ensureIdentical, cancellationToken)); }