示例#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();
        }
        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();
 }