Esempio n. 1
0
 /// <summary>
 /// Opens the database connection with retry.
 /// </summary>
 public override void Open()
 {
     RetryStrategy.ExecuteWithRetry(null, () => { InnerConnection.Open(); return(true); });
 }
Esempio n. 2
0
 public new OdbcTransaction BeginTransaction(IsolationLevel isolevel)
 {
     return((OdbcTransaction)InnerConnection.BeginTransaction(isolevel));
 }
Esempio n. 3
0
 public override DataTable GetSchema(string collectionName, string[] restrictionValues)
 {
     return(InnerConnection.GetSchema(ConnectionFactory, PoolGroup, this, collectionName, restrictionValues));
 }
Esempio n. 4
0
 protected override DbCommand CreateDbCommand()
 {
     return(new GlimpseDbCommand(InnerConnection.CreateCommand(), this));
 }
Esempio n. 5
0
 internal void NotifyWeakReference(int message)
 {
     InnerConnection.NotifyWeakReference(message);
 }
Esempio n. 6
0
 public override DataTable GetSchema()
 {
     return(InnerConnection.GetSchema());
 }
Esempio n. 7
0
 public override DataTable GetSchema(string collectionName, string[] restrictionValues)
 {
     return(InnerConnection.GetSchema(collectionName, restrictionValues));
 }
Esempio n. 8
0
 public ValueTask DisconnectAsync(string?reason, IMessageWriter?writer = null)
 {
     return(InnerConnection.Disconnect(reason, writer as MessageWriter));
 }
Esempio n. 9
0
 public void DisposeInnerConnection()
 {
     InnerConnection.Dispose();
 }
Esempio n. 10
0
 protected override DbTransaction BeginDbTransaction(IsolationLevel isolationLevel)
 {
     return(InnerConnection.BeginTransaction(isolationLevel));
 }
Esempio n. 11
0
 public ValueTask SendAsync(IMessageWriter writer)
 {
     return(InnerConnection.SendAsync(writer));
 }
Esempio n. 12
0
 public ValueTask DisconnectAsync(string?reason)
 {
     return(InnerConnection.Disconnect(reason));
 }
Esempio n. 13
0
 /// <summary>
 /// Asynchronously opens a ReliableConnection.
 /// </summary>
 /// <param name="cancellationToken">A token that can be used to cancel the operation.</param>
 /// <returns>A task representing the completion of the open operation.</returns>
 public override Task OpenAsync(CancellationToken cancellationToken)
 {
     return(RetryStrategy.ExecuteWithRetryAsync(null, () => InnerConnection.OpenAsync().ContinueWith(t => { t.Wait(); return true; })));
 }
Esempio n. 14
0
 /// <summary>
 /// Creates a DbCommand for calls to the database.
 /// </summary>
 /// <returns>A ReliableCommand.</returns>
 protected override DbCommand CreateDbCommand()
 {
     return(new ReliableCommand(RetryStrategy, this, InnerConnection.CreateCommand()));
 }
Esempio n. 15
0
 public override void Close()
 {
     InnerConnection.Close();
 }
Esempio n. 16
0
 /// <inheritdoc/>
 protected override DbCommand CreateDbCommand()
 {
     return(new NpgsqlCommandWithRecordsets(this, InnerConnection.CreateCommand()));
 }
Esempio n. 17
0
 public override void Open()
 {
     InnerConnection.Open();
 }
 /// <inheritdoc/>
 protected override DbCommand CreateDbCommand()
 {
     return(new OptimisticCommand(this, InnerConnection.CreateCommand()));
 }
Esempio n. 19
0
 public override DataTable GetSchema(string collectionName)
 {
     return(InnerConnection.GetSchema(collectionName));
 }
 /// <inheritdoc/>
 public override void Open()
 {
     base.Open();
     InnerConnection.ExecuteSql(_switchSchemaSql);
 }
Esempio n. 21
0
 protected override DbTransaction BeginDbTransaction(System.Data.IsolationLevel isolationLevel)
 {
     return(new GlimpseDbTransaction(InnerConnection.BeginTransaction(isolationLevel), this));
 }
        /// <inheritdoc/>
        public async override Task OpenAsync(System.Threading.CancellationToken cancellationToken)
        {
            await base.OpenAsync(cancellationToken).ConfigureAwait(false);

            await InnerConnection.ExecuteSqlAsync(_switchSchemaSql, cancellationToken).ConfigureAwait(false);
        }
Esempio n. 23
0
 override public DataTable GetSchema(string collectionName, string[] restrictionValues)
 {
     // NOTE: This is virtual because not all providers may choose to support
     //       returning schema data
     return(InnerConnection.GetSchema(ConnectionFactory, PoolGroup, this, collectionName, restrictionValues));
 }
Esempio n. 24
0
 public override void Close()
 {
     InnerConnection.CloseConnection(this, ConnectionFactory);
     // does not require GC.KeepAlive(this) because of OnStateChange
 }
Esempio n. 25
0
 internal void RemoveWeakReference(object value)
 {
     InnerConnection.RemoveWeakReference(value);
 }
Esempio n. 26
0
 internal virtual T GetClient <T>() where T : VssHttpClientBase => InnerConnection.GetClient <T>();
Esempio n. 27
0
 public override void ChangeDatabase(string value)
 {
     InnerConnection.ChangeDatabase(value);
 }
Esempio n. 28
0
 public override void ChangeDatabase(string databaseName)
 {
     InnerConnection.ChangeDatabase(databaseName);
 }
Esempio n. 29
0
 internal void AddWeakReference(object value, int tag)
 {
     InnerConnection.AddWeakReference(value, tag);
 }
 protected override DbCommand CreateDbCommand()
 {
     return(new SpecializedProfiledDbCommand(InnerConnection.CreateCommand(), InnerConnection, Profiler));
 }