Ejemplo n.º 1
0
 /// <summary>
 /// Check SNI handle connection
 /// </summary>
 /// <returns>SNI error status</returns>
 public uint CheckConnection()
 {
     lock (this)
     {
         return(_lowerHandle.CheckConnection());
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Check SNI handle connection
 /// </summary>
 /// <returns>SNI error status</returns>
 public uint CheckConnection()
 {
     using (TrySNIEventScope.Create(nameof(SNIMarsConnection)))
     {
         lock (DemuxerSync)
         {
             return(_lowerHandle.CheckConnection());
         }
     }
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Check SNI handle connection
        /// </summary>
        /// <returns>SNI error status</returns>
        public uint CheckConnection()
        {
            long scopeID = SqlClientEventSource.Log.TrySNIScopeEnterEvent("<sc.SNI.SNIMarsConnection.CheckConnection |SNI|INFO|SCOPE>");

            try
            {
                lock (this)
                {
                    return(_lowerHandle.CheckConnection());
                }
            }
            finally
            {
                SqlClientEventSource.Log.TrySNIScopeLeaveEvent(scopeID);
            }
        }
        /// <summary>
        /// Check SNI handle connection
        /// </summary>
        /// <returns>SNI error status</returns>
        public uint CheckConnection()
        {
            long scopeID = SqlClientEventSource.Log.TrySNIScopeEnterEvent(s_className);

            try
            {
                lock (this)
                {
                    return(_lowerHandle.CheckConnection());
                }
            }
            finally
            {
                SqlClientEventSource.Log.TrySNIScopeLeaveEvent(scopeID);
            }
        }
Ejemplo n.º 5
0
 /// <summary>
 /// Check SNI handle connection
 /// </summary>
 /// <param name="handle"></param>
 /// <returns>SNI error status</returns>
 internal uint CheckConnection(SNIHandle handle)
 {
     return(handle.CheckConnection());
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Check SNI handle connection
 /// </summary>
 /// <param name="handle"></param>
 /// <returns>SNI error status</returns>
 public uint CheckConnection(SNIHandle handle)
 {
     return(handle.CheckConnection());
 }
        internal override uint CheckConnection()
        {
            SNIHandle handle = Handle;

            return(handle == null ? TdsEnums.SNI_SUCCESS : handle.CheckConnection());
        }