<PackageReference Include="System.ClientModel" Version="1.7.0" />

UserAgentPolicy

A pipeline policy that adds user agent headers to HTTP requests.
public string ApplicationId { get; }

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

public Assembly Assembly { get; }

The package type represented by this UserAgentPolicy instance.

public string UserAgentValue { get; }

The formatted user agent string that will be added to HTTP requests by this policy.

public UserAgentPolicy(Assembly callerAssembly, string applicationId = null)

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