private void OnRespond(IRequest request, IResponse response) { calls++; SetLog(string.Format("Call: {0} {1} : {2}\n", calls, request.Method, request.Url)); Action<IRequest, IResponse> action = GetAction(request); if (action == null) { MessageBox.Show(string.Format("{0}:{1}\n{2}", request.Method, request.Url, request.BodyAs<string>())); return; } action(request, response); }