如何在运行时监视Windows Phone中的HTTP网络流量? [英] How to monitor HTTP network traffic in a Windows Phone in runtime?

查看:54
本文介绍了如何在运行时监视Windows Phone中的HTTP网络流量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的Windows Phone 7/8应用程序运行所有HTTP请求/响应时进行记录。

I would like to log while my Windows Phone 7/8 App runs all the HTTP requests/responses.

这是否可以在运行时进行?如何?我可以通过详细信息注册和通知任何课程/服务吗?

Is this possible in runtime? And how? Any classes/service I can register and notified with events with detailed information?

我想获得除HTTP以外的一般分析监控信息,就像Windows Phone分析工具提供的那样。知道怎么做?

I would like to get general analysis monitoring information other than HTTP only like the Windows Phone Analysis tool provides. Any idea how?

我只想使用框架,没有第三方工具或SDK。

I want to use the framework only and no 3rd party tools or SDK.

谢谢。

推荐答案

只要您的代码发起网络请求并获得响应,您就可以编写日志,但不能拦截所有网络活动。

You could write a log whenever your code initiates a network request and gets a response but you cannot intercept all network activity.

例如,WebBrowser控件发出的网络调用不使用托管网络堆栈,只有主导航的事件会冒泡到托管图层。

For example, the network calls made by the WebBrowser control do not use the managed network stack and only the events for the primary navigation bubble up to the managed layer.


这篇关于如何在运行时监视Windows Phone中的HTTP网络流量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆