Class UserAgentBuilder
A User-Agent string generator that uses reflection to detect the current assembly version.
Inheritance
System.Object
UserAgentBuilder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Okta.Sdk.Internal
Assembly: Okta.Sdk.dll
Syntax
public sealed class UserAgentBuilder
Constructors
UserAgentBuilder(ILogger)
Initializes a new instance of the UserAgentBuilder class.
Declaration
public UserAgentBuilder(ILogger logger = null)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Logging.ILogger | logger | An optional logging interface |
Fields
OktaSdkUserAgentName
The standard User-Agent token of the Okta SDK.
Declaration
public const string OktaSdkUserAgentName = "okta-sdk-dotnet"
Field Value
Type | Description |
---|---|
System.String |
Methods
GetUserAgent()
Constructs a User-Agent string.
Declaration
public string GetUserAgent()
Returns
Type | Description |
---|---|
System.String | A User-Agent string with the default tokens, and any additional tokens. |