<PackageReference Include="Azure.Core" Version="1.49.0" />

TelemetryDetails

public class TelemetryDetails
Details about the package to be included in UserAgent telemetry
public string ApplicationId { get; }

The value of the applicationId used to initialize this TelemetryDetails instance.

public Assembly Assembly { get; }

The package type represented by this TelemetryDetails instance.

public TelemetryDetails(Assembly assembly, string applicationId = null)

Initialize an instance of TelemetryDetails by extracting the name and version information from the Assembly associated with the assembly.

public void Apply(HttpMessage message)

Sets the package name and version portion of the UserAgent telemetry value for the context of the message Note: If IsTelemetryEnabled is false, this value is never used.