开发者

Does someone have used Network Emulator API exposed in VS 2010

开发者 https://www.devze.com 2022-12-28 21:53 出处:网络
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 pr

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_WithLatenc开发者_Python百科y.xml");
NetworkEmulationApi.StartEmulation(m_emulatorHandle);


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

0

精彩评论

暂无评论...
验证码 换一张
取 消