示例#1
0
        protected static void OnSendTimeout(object state)
        {
            SocketConnection thisPtr = (SocketConnection)state;

            thisPtr.Abort(4,    // TraceEventType.Warning
                          SR.Format(SR.SocketAbortedSendTimedOut, thisPtr._sendTimeout), TransferOperation.Write);
        }
示例#2
0
 protected static void OnReceiveTimeout(SocketConnection socketConnection)
 {
     try
     {
         socketConnection.Abort(SR.Format(SR.SocketAbortedReceiveTimedOut, socketConnection._receiveTimeout), TransferOperation.Read);
     }
     catch (SocketException)
     {
         // Guard against unhandled SocketException in timer callbacks
     }
 }
示例#3
0
 protected static void OnSendTimeout(SocketConnection socketConnection)
 {
     try
     {
         socketConnection.Abort(4,       // TraceEventType.Warning
                                SR.Format(SR.SocketAbortedSendTimedOut, socketConnection._sendTimeout), TransferOperation.Write);
     }
     catch (SocketException)
     {
         // Guard against unhandled SocketException in timer callbacks
     }
 }
示例#4
0
        protected static void OnReceiveTimeout(object state)
        {
            SocketConnection thisPtr = (SocketConnection)state;

            thisPtr.Abort(SR.Format(SR.SocketAbortedReceiveTimedOut, thisPtr._receiveTimeout), TransferOperation.Read);
        }
示例#5
0
 protected static void OnSendTimeout(SocketConnection socketConnection)
 {
     socketConnection.Abort(4,   // TraceEventType.Warning
                            SR.Format(SR.SocketAbortedSendTimedOut, socketConnection._sendTimeout), TransferOperation.Write);
 }
示例#6
0
 protected static void OnReceiveTimeout(SocketConnection socketConnection)
 {
     socketConnection.Abort(SR.Format(SR.SocketAbortedReceiveTimedOut, socketConnection._receiveTimeout), TransferOperation.Read);
 }
示例#7
0
        private static void OnSendTimeout(object state)
        {
            SocketConnection connection = (SocketConnection)state;

            connection.Abort(TraceEventType.Warning, System.ServiceModel.SR.GetString("SocketAbortedSendTimedOut", new object[] { connection.sendTimeout }), TransferOperation.Write);
        }
示例#8
0
        private static void OnReceiveTimeout(object state)
        {
            SocketConnection connection = (SocketConnection)state;

            connection.Abort(System.ServiceModel.SR.GetString("SocketAbortedReceiveTimedOut", new object[] { connection.receiveTimeout }), TransferOperation.Read);
        }
示例#9
0
 protected static void OnSendTimeout(SocketConnection socketConnection)
 {
     socketConnection.Abort(4,	// TraceEventType.Warning
         SR.Format(SR.SocketAbortedSendTimedOut, socketConnection._sendTimeout), TransferOperation.Write);
 }
示例#10
0
 protected static void OnReceiveTimeout(SocketConnection socketConnection)
 {
     socketConnection.Abort(SR.Format(SR.SocketAbortedReceiveTimedOut, socketConnection._receiveTimeout), TransferOperation.Read);
 }