RuntimeOptions class
Arguments of Runtime.Create.
Namespace: Quaternar.Qaros · Assembly: Quaternar.Qaros.dll
public sealed class RuntimeOptions
Properties
| Member | Description |
|---|---|
| RuntimeBinariesFolderPath | Runtime bin folder holding qar-runtime-launcher. Leave null: the runtime uses the folder its loaded qar-streaming-c.dll came from, which is the installed QAROS bin (InstalledRuntime.TryGetBinFolder). Set it only for our own development builds. A relative path resolves against the current working directory. |
| StorageFolderPath | Root of the device certificates and session state. Null or empty uses the platform's application data folder, on Windows %LOCALAPPDATA%\Quaternar\QarOS. |
| EphemeralStorage | Keep the identity this runtime onboards with in memory only (C QarRuntimeEphemeralStorageExt), for a process that must leave nothing on disk: a companion process joining with an invite from Session.RequestOnboardingInvite sets it. Defaults to false. |
RuntimeBinariesFolderPath
Runtime bin folder holding qar-runtime-launcher. Leave null: the runtime
uses the folder its loaded qar-streaming-c.dll came from, which is the installed
QAROS bin (InstalledRuntime.TryGetBinFolder). Set it only for our
own development builds. A relative path resolves against the current working directory.
public string? RuntimeBinariesFolderPath { get; set; }
Value: string
StorageFolderPath
Root of the device certificates and session state. Null or empty uses the platform's
application data folder, on Windows %LOCALAPPDATA%\Quaternar\QarOS.
public string? StorageFolderPath { get; set; }
Value: string
EphemeralStorage
Keep the identity this runtime onboards with in memory only (C
QarRuntimeEphemeralStorageExt), for a process that must leave nothing on disk:
a companion process joining with an invite from
Session.RequestOnboardingInvite
sets it. Defaults to false.
public bool EphemeralStorage { get; set; }
Value: bool
Remarks
Runtime.Onboard writes nothing under the storage folder and returns
OnboardingId.Default; certificate renewal works as usual. The identity is
gone with the runtime, so a restarted companion onboards again, with the same invite
while the app's session lives. The deprecated Runtime.Rejoin and
Runtime.Forget fail with StatusCode.ArgumentNotSupported:
there is no persisted slot. OnboardOptions.UseLocalApp is stateless
already and unaffected.
A runtime older than this option ignores it and stores the identity on disk; check
RuntimeInfo.Version before relying on it.
Methods
WithExtension
public RuntimeOptions WithExtension(Structure extension)
Parameters
| Name | Type | Description |
|---|---|---|
extension | Structure |
Returns: RuntimeOptions