protected static void OnSendTimeout(object state) { SocketConnection thisPtr = (SocketConnection)state; thisPtr.Abort(4, // TraceEventType.Warning SR.Format(SR.SocketAbortedSendTimedOut, thisPtr._sendTimeout), TransferOperation.Write); }
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 } }
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 } }
protected static void OnReceiveTimeout(object state) { SocketConnection thisPtr = (SocketConnection)state; thisPtr.Abort(SR.Format(SR.SocketAbortedReceiveTimedOut, thisPtr._receiveTimeout), TransferOperation.Read); }
protected static void OnSendTimeout(SocketConnection socketConnection) { socketConnection.Abort(4, // TraceEventType.Warning SR.Format(SR.SocketAbortedSendTimedOut, socketConnection._sendTimeout), TransferOperation.Write); }
protected static void OnReceiveTimeout(SocketConnection socketConnection) { socketConnection.Abort(SR.Format(SR.SocketAbortedReceiveTimedOut, socketConnection._receiveTimeout), TransferOperation.Read); }
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); }
private static void OnReceiveTimeout(object state) { SocketConnection connection = (SocketConnection)state; connection.Abort(System.ServiceModel.SR.GetString("SocketAbortedReceiveTimedOut", new object[] { connection.receiveTimeout }), TransferOperation.Read); }