Class iRacingDataClientOptions
Configuration options for the iRacing Data Client.
Inherited Members
Namespace: Aydsko.iRacingData
Assembly: Aydsko.iRacingData.dll
Syntax
public class iRacingDataClientOptions
Properties
CurrentDateTimeSource
The source of the current date and time in UTC for the library.
Declaration
public Func<DateTimeOffset>? CurrentDateTimeSource { get; set; }
Property Value
Type | Description |
---|---|
Func<DateTimeOffset> |
Remarks
Defaults to UtcNow.
Password
Password associated with the iRacing user name used to authenticate.
Declaration
public string? Password { get; set; }
Property Value
Type | Description |
---|---|
string |
PasswordIsEncoded
If true indicates the Password property value is already encoded ready for submission to the iRacing API.
Declaration
public bool PasswordIsEncoded { get; set; }
Property Value
Type | Description |
---|---|
bool |
See Also
RestoreCookies
Called to retrieve cookie values stored from a previous authentication.
Declaration
public Func<CookieCollection>? RestoreCookies { get; set; }
Property Value
Type | Description |
---|---|
Func<CookieCollection> |
SaveCookies
After a successful authentication called with the cookies to allow them to be saved.
Declaration
public Action<CookieCollection>? SaveCookies { get; set; }
Property Value
Type | Description |
---|---|
Action<CookieCollection> |
Remarks
One of the cookies returned in this collection irsso_membersv2
may be used to authenticate with the /membersite
and /memberstats
endpoints on the classic site's API.
UserAgentProductName
Name of the application or product using the Data Client library to be included in the HTTP User-Agent
header.
Declaration
public string? UserAgentProductName { get; set; }
Property Value
Type | Description |
---|---|
string |
UserAgentProductVersion
Version of the application or product using the Data Client library to be included in the HTTP User-Agent
header.
Declaration
public Version? UserAgentProductVersion { get; set; }
Property Value
Type | Description |
---|---|
Version |
Username
iRacing user name to use for authentication.
Declaration
public string? Username { get; set; }
Property Value
Type | Description |
---|---|
string |