Exemplo n.º 1
0
        public void StopInterfaceTracing()
        {
            EnableInterfaceTracingRequest request = new EnableInterfaceTracingRequest();

            request.EnableTracingParams = new EnableInterfaceTracingParameters();
            request.EnableTracingParams.IsTracingEnabled  = false;
            request.EnableTracingParams.DurationInSeconds = 0;

            TracingService.EnableInterfaceTracing(request);
        }
Exemplo n.º 2
0
        public void StartInterfaceTracing(int duration)
        {
            EnableInterfaceTracingRequest request = new EnableInterfaceTracingRequest();

            request.EnableTracingParams = new EnableInterfaceTracingParameters();
            request.EnableTracingParams.IsTracingEnabled  = true;
            request.EnableTracingParams.DurationInSeconds = duration;

            TracingService.EnableInterfaceTracing(request);
        }