Does someone have used Network Emulator API exposed in VS 2010
-
01-10-2019 - |
Question
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);
Solution
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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow