Skip to main content
Version: Dev (main)

OnboardLocalApp class

Onboarding mode: join the QAROS hub installed on this PC as a local source app, with no code. Select with OnboardOptions.UseLocalApp. The hub asks the user once; later starts join silently while the app still matches. Stateless: the returned onboarding id is the zero id, so rejoin and forget do not apply. Not combinable with a host or peer id extension. Windows only.

Namespace: Quaternar.Qaros · Assembly: Quaternar.Qaros.dll

public sealed class OnboardLocalApp : Structure

Inherits: Structure → OnboardLocalApp

Constructors​

OnboardLocalApp()​

public OnboardLocalApp()

Properties​

MemberDescription
ApprovalTimeoutMax wait for the user's first-time approval; zero takes the hub default (120 s).
TagThe app tag telling several instances of one approved app apart (C QarOnboardLocalAppTagExt); null, the default, is the app's default tag.
RemoteAppGrantOptional remote-app grant to redeem while onboarding (C QarOnboardRemoteAppGrantExt): a MemberHubInvitation the primary's app created with MemberHubInvitationOptions.AppTag set, as MemberHubInvitation.Deserialize returned it. Null, the default, redeems none.

ApprovalTimeout​

Max wait for the user's first-time approval; zero takes the hub default (120 s).

public TimeSpan ApprovalTimeout { get; set; }

Value: TimeSpan

Tag​

The app tag telling several instances of one approved app apart (C QarOnboardLocalAppTagExt); null, the default, is the app's default tag.

public string? Tag { get; set; }

Value: string

Exceptions

ExceptionCondition
ArgumentExceptionThe value breaks the rules above (checked as a courtesy; the runtime checks too).

Remarks

The hub remembers a peer id per approval and tag: the next start with the same tag gets the same peer id while no other live process holds it, and a one-off id otherwise. A second onboard with the same tag in this process shares the first one's session (same peer); different tags are different peers.

An identity key like an app volume's common name: non-empty printable ASCII, no space at either end, at most 256 bytes, compared exactly, not starting with the reserved member/ prefix, kept constant across versions of the app. Recommended: a DNS-style name scoped by the app, such as left.terraexplorer.skyline. Put non-ASCII text in PeerPresentationOptions.DisplayName.

A runtime older than the tag ignores it and joins with the default tag.

RemoteAppGrant​

Optional remote-app grant to redeem while onboarding (C QarOnboardRemoteAppGrantExt): a MemberHubInvitation the primary's app created with MemberHubInvitationOptions.AppTag set, as MemberHubInvitation.Deserialize returned it. Null, the default, redeems none.

public MemberHubInvitation? RemoteAppGrant { get; set; }

Value: MemberHubInvitation

Remarks

The hub on this PC must already be a member of the invitation's primary (Runtime.JoinHubAsMember). When no approval admits this executable there yet, the primary approves it as the app the grant admits, without a prompt, and later starts onboard with no grant and no prompt. The first executable that redeems the grant wins: once another one has, the onboarding fails with StatusCode.OnboardingApprovalDenied. When an approval already admits this executable, the invitation is not used.

The grant's app tag applies; OnboardLocalApp.Tag is not needed. Only the local-app mode takes a grant.

The invitation is a secret bearer credential: receive it only over a private channel and never log it. It is borrowed, not owned: the caller keeps ownership and disposes it, and the binding holds a reference on it for the duration of the onboard call, so disposing it meanwhile takes effect once the call is done.