Share via


TelemetryService Class

Definition

Important

This API is not CLS-compliant.

Core Telemetry class. It has default session object.

public ref class TelemetryService abstract sealed
[System.CLSCompliant(false)]
public static class TelemetryService
[<System.CLSCompliant(false)>]
type TelemetryService = class
Public Class TelemetryService
Inheritance
TelemetryService
Attributes

Properties

AssetService

Gets the singleton AssetService instance.

DefaultSession

Gets default session Used by most, if not all, components to get a session

Methods

AttachTestChannel(ITelemetryTestChannel)

Attach test channel for diagnostics

CreateAndGetDefaultSession(String, String, String)

Create new default session with specified parameters

CreateAndGetDefaultSession(String, String)

Create new default session with specified parameters

CreateAndGetDefaultSession(String)

Create new default session with specified parameters

DetachTestChannel(ITelemetryTestChannel)

Detach test channel

InitializeEtwProvider(ITelemetryEtwProvider)

Initialized the host specific ETW provider instance to be used by the telemetry service This method must be called before any telemetry APIs are used otherwise default provider will be used and the subsequent InitializeEtwProvider calls will throw.

SetDefaultSession(TelemetrySession)

Allow user to change the Default Session, especially for a cloned session e.g. TelemetryService.SetDefaultSession(new TelemetrySession(clonedSettingsString)

TrySetDefaultSession(TelemetrySession)

Attempts to set the Default Session, especially for a cloned session e.g. TelemetryService.TrySetDefaultSession(new TelemetrySession(clonedSettingsString)

Applies to