Exemplo n.º 1
0
        private static void OnSendTimeout(object state)
        {
            Microsoft.ServiceBus.Channels.SocketConnection socketConnection = (Microsoft.ServiceBus.Channels.SocketConnection)state;
            string socketAbortedSendTimedOut = Resources.SocketAbortedSendTimedOut;

            object[] objArray = new object[] { socketConnection.sendTimeout };
            socketConnection.Abort(TraceEventType.Warning, Microsoft.ServiceBus.SR.GetString(socketAbortedSendTimedOut, objArray));
        }
Exemplo n.º 2
0
        private static void OnReceiveTimeout(object state)
        {
            Microsoft.ServiceBus.Channels.SocketConnection socketConnection = (Microsoft.ServiceBus.Channels.SocketConnection)state;
            string socketAbortedReceiveTimedOut = Resources.SocketAbortedReceiveTimedOut;

            object[] objArray = new object[] { socketConnection.receiveTimeout };
            socketConnection.Abort(Microsoft.ServiceBus.SR.GetString(socketAbortedReceiveTimedOut, objArray));
        }