/// <summary> /// Message handler that throws an exception /// </summary> public static void TestCrashHandler(CommonLibs.Web.LongPolling.Message requestMessage) { int a = 0; int b = 1; a = b / a; }
/// <summary> /// Simple message handler that sends the original message back to sender without any other processing /// </summary> public static void PingMessageHandler(CommonLibs.Web.LongPolling.Message requestMessage) { var responseMessage = CommonLibs.Web.LongPolling.Message.CreateResponseMessage( requestMessage ); LongPolling.HttpHandler.MessageHandlerStatic.SendMessageToConnection( requestMessage.SenderConnectionID, responseMessage ); }