コード例 #1
0
 public override void Open()
 {
     _retryPolicy.Execute(() =>
     {
         if (InnerConnection.State != ConnectionState.Open)
         {
             InnerConnection.Open();
         }
     });
 }
コード例 #2
0
 public override void Open()
 {
     InnerConnection.Open();
 }
コード例 #3
0
 /// <summary>
 /// Opens the database connection with retry.
 /// </summary>
 public override void Open()
 {
     RetryStrategy.ExecuteWithRetry(null, () => { InnerConnection.Open(); return(true); });
 }
コード例 #4
0
 public override void Open()
 {
     _profiler.ConnectionOpened(InnerConnection, NHProfilerContextProvider.GetLoggedDbConnection(InnerConnection));
     InnerConnection.Open();
 }