Exemplo n.º 1
0
 /// <summary>
 /// Test handle for killing underlying connection
 /// </summary>
 public void KillConnection()
 {
     using (TrySNIEventScope.Create(nameof(SNIMarsConnection)))
     {
         _lowerHandle.KillConnection();
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Test handle for killing underlying connection
        /// </summary>
        public void KillConnection()
        {
            long scopeID = SqlClientEventSource.Log.TrySNIScopeEnterEvent("<sc.SNI.SNIMarsConnection.KillConnection |SNI|INFO|SCOPE>");

            try
            {
                _lowerHandle.KillConnection();
            }
            finally
            {
                SqlClientEventSource.Log.TrySNIScopeLeaveEvent(scopeID);
            }
        }
        /// <summary>
        /// Test handle for killing underlying connection
        /// </summary>
        public void KillConnection()
        {
            long scopeID = SqlClientEventSource.Log.TrySNIScopeEnterEvent(s_className);

            try
            {
                _lowerHandle.KillConnection();
            }
            finally
            {
                SqlClientEventSource.Log.TrySNIScopeLeaveEvent(scopeID);
            }
        }
Exemplo n.º 4
0
 /// <summary>
 /// Test handle for killing underlying connection
 /// </summary>
 public void KillConnection()
 {
     _lowerHandle.KillConnection();
 }