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();
 }
 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();
 }
 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();
 }
Exemple #5
0
 public override void Open()
 {
     SetSession();
     SfSession.Open();
     OnSessionEstablished();
 }