有人使用过 VS 2010 中公开的 Network Emulator API
我见过 VS2010 公开网络模拟器 API。我已经安装了它并尝试使用这个 API,但无法检测它是否真的使用此代码运行。有时我给出了错误的配置文件名称,但它不会引发任何错误。请在下面找到我的代码。如果有人用过请帮助我。
IntPtr m_emulatorHandle = IntPtr.Zero;
NetworkEmulationApi.LoadProfile(m_emulatorHandle, "300KB_WithLatency.xml");
NetworkEmulationApi.StartEmulation(m_emulatorHandle);
I have seen VS2010 exposing Network Emulator API. I have installed it and trying to use this API, but not able detect whether it is really running with this code or not. Sometime I have given wrong profile name but it does not throw any error. Please find below my piece of code. If some one have used it please help me.
IntPtr m_emulatorHandle = IntPtr.Zero;
NetworkEmulationApi.LoadProfile(m_emulatorHandle, "300KB_WithLatency.xml");
NetworkEmulationApi.StartEmulation(m_emulatorHandle);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经解决了这个问题。经过大量的狂欢后,我发现了伊万的帖子。如果有人想查看它,请访问这里< /a>
基本上在VS2010发布版本中他们修改了早期的API,如果我们使用Microsoft.VisualStudio.QualityTools.NetworkEmulation dll将解决所有问题。
谢谢,
普里坦
I have solved this problem. After lot of binging I found Ivan post on this. If anyone want to see it please visit here
Basically in VS2010 release version they have modified the earlier API and if we use Microsoft.VisualStudio.QualityTools.NetworkEmulation dll will solve all problems.
Thanks,
Pritam