Class KasServerOptions
- Namespace
- KASserver
- Assembly
- KASserver.Client.dll
Configuration options for the KAS API client.
public class KasServerOptions
- Inheritance
-
KasServerOptions
- Inherited Members
Properties
Login
The KAS login, e.g. w00XXXXX. Required.
public string? Login { get; set; }
Property Value
Password
The KAS password. Required.
public string? Password { get; set; }
Property Value
SessionLifetime
Lifetime of the session token in seconds. Default: 1800 (30 minutes).
public int SessionLifetime { get; set; }
Property Value
Timeout
HTTP request timeout. Default: 30 seconds. Use InfiniteTimeSpan to disable the timeout; any other non-positive value is rejected.
public TimeSpan Timeout { get; set; }
Property Value
TwoFactorPinProvider
Optional callback that supplies the current two-factor one-time PIN
(KAS parameter session_2fa). Only needed when 2FA is enabled for the account.
public Func<CancellationToken, Task<string>>? TwoFactorPinProvider { get; set; }
Property Value
Remarks
Invoked on every (re-)authentication while the single request lock is held, so all other calls block until it completes. Keep it fast and non-interactive.
UpdateSessionLifetime
When true, the session lifetime is extended with every request
(KAS parameter session_update_lifetime=Y). Default: true.
public bool UpdateSessionLifetime { get; set; }