Пример #1
0
 /// <summary>
 /// Test handle for killing underlying connection
 /// </summary>
 public void KillConnection()
 {
     using (TrySNIEventScope.Create(nameof(SNIMarsConnection)))
     {
         _lowerHandle.KillConnection();
     }
 }
Пример #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);
            }
        }
Пример #4
0
 /// <summary>
 /// Test handle for killing underlying connection
 /// </summary>
 public void KillConnection()
 {
     _lowerHandle.KillConnection();
 }