public void StopInterfaceTracing() { EnableInterfaceTracingRequest request = new EnableInterfaceTracingRequest(); request.EnableTracingParams = new EnableInterfaceTracingParameters(); request.EnableTracingParams.IsTracingEnabled = false; request.EnableTracingParams.DurationInSeconds = 0; TracingService.EnableInterfaceTracing(request); }
public void StartInterfaceTracing(int duration) { EnableInterfaceTracingRequest request = new EnableInterfaceTracingRequest(); request.EnableTracingParams = new EnableInterfaceTracingParameters(); request.EnableTracingParams.IsTracingEnabled = true; request.EnableTracingParams.DurationInSeconds = duration; TracingService.EnableInterfaceTracing(request); }