コード例 #1
0
 public override void Open()
 {
     logger.Debug("Open Connection.");
     SetSession();
     try
     {
         SfSession.Open();
     }
     catch (Exception e)
     {
         // Otherwise when Dispose() is called, the close request would timeout.
         _connectionState = ConnectionState.Closed;
         logger.Error("Unable to connect", e);
         if (!(e.GetType() == typeof(SnowflakeDbException)))
         {
             throw new SnowflakeDbException(e.InnerException,
                                            SFError.INTERNAL_ERROR,
                                            "Unable to connect");
         }
         else
         {
             throw;
         }
     }
     OnSessionEstablished();
 }
 public override void Open()
 {
     logger.Debug("Open Connection.");
     SetSession();
     SfSession.Open();
     OnSessionEstablished();
 }
コード例 #3
0
 public override void Open()
 {
     logger.Debug("Open Connection.");
     SetSession();
     try
     {
         SfSession.Open();
     }
     catch (Exception e)
     {
         // Otherwise when Dispose() is called, the close request would timeout.
         _connectionState = ConnectionState.Closed;
         throw e;
     }
     OnSessionEstablished();
 }
コード例 #4
0
 public override void Open()
 {
     logger.Debug("Open Connection.");
     SetMockSession();
     try
     {
         SfSession.Open();
     }
     catch (Exception e)
     {
         // Otherwise when Dispose() is called, the close request would timeout.
         _connectionState = System.Data.ConnectionState.Closed;
         logger.Error("Unable to connect", e);
         throw;
     }
     OnSessionEstablished();
 }
コード例 #5
0
 public override void Open()
 {
     SetSession();
     SfSession.Open();
     OnSessionEstablished();
 }