示例#1
0
        public void StopInterfaceTracing()
        {
            EnableInterfaceTracingRequest request = new EnableInterfaceTracingRequest();

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

            TracingService.EnableInterfaceTracing(request);
        }
示例#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);
        }
示例#3
0
        public void EnableInterfaceTracing(EnableInterfaceTracingRequest request)
        {
            EnableInterfaceTracingAction action = PolicyInjection.Create <EnableInterfaceTracingAction>();

            action.Execute(Translators.EnableInterfaceTracingTranslator.TranslateFromServiceToBusiness(request.EnableTracingParams));
        }
        public void EnableInterfaceTracing(EnableInterfaceTracingRequest request)
        {
            TracingServiceAdapter adapter = PolicyInjection.Create <TracingServiceAdapter>();

            adapter.EnableInterfaceTracing(request);
        }