Esempio 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);
        }
Esempio 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);
        }