简体   繁体   English

使用Visual Studio 2012平板电脑模拟器模拟无网络

[英]Simulate no network with Visual studio 2012 tablet emulator

I am currently writing a WinRT application that has some network access to retrieve various details, I need to be able to simulate conditions when there is no network, or a very slow network to ensure that the app works as it should under these conditions. 我目前正在编写一个WinRT应用程序,它具有一些网络访问权以检索各种细节,我需要能够在没有网络时模拟条件,或者需要一个非常慢的网络来确保应用程序在这些条件下正常工作。

How do I get the tablet emulator that is part of Visual Studio 2012 to simulate these conditions? 如何使用Visual Studio 2012中的平板电脑模拟器来模拟这些条件?

Cheers, Rupert 干杯,鲁珀特

To simulate "no network" you have to disable the networking on the host computer. 要模拟“无网络”,您必须禁用主机上的网络。 It seems that the simulator shares the network with the host. 似乎模拟器与主机共享网络。

In regards to a slow network connection, you likely have to do this on the host again. 对于慢速网络连接,您可能必须再次在主机上执行此操作。 See this post: Network tools that simulate slow network connection 请参阅此文章: 模拟慢速网络连接的网络工具

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM