コード例 #1
0
        public static void EnableTelemetry()
        {
            // Open the telemetry sink
            Sink.IsTelemetryAllowed = true;

            // Begin listening for telemetry events
            // This must be done after the low-level sink is opened above
            // So that queued events get flushed to an open telemetry sink
            EventTelemetrySink.Enable();

            AxeWindowsTelemetrySink.Enable();
        }
コード例 #2
0
        public static void OptIntoTelemetry()
        {
            if (!DoesGroupPolicyAllowTelemetry)
            {
                return;
            }

            // Open the telemetry sink
            Sink.HasUserOptedIntoTelemetry = true;

            // Begin listening for telemetry events
            // This must be done after the low-level sink is opened above
            // So that queued events get flushed to an open telemetry sink
            EventTelemetrySink.Enable();

            AxeWindowsTelemetrySink.Enable();
        }
コード例 #3
0
 static EventTelemetrySink()
 {
     // Automatically start listening for telemetry events raised by extensions
     EventTelemetrySink.AttachReportExceptionHandler();
 }