OnboardingInvite class
An onboarding invite: everything a companion process needs to onboard with
OnboardOptions.UseInvite. The app requests it once per session
(Session.RequestOnboardingInvite);
on Windows it works for every start of the companion while the app's session lives.
Namespace: Quaternar.Qaros · Assembly: Quaternar.Qaros.dll
public sealed class OnboardingInvite : IDisposable
Implements: IDisposable
Remarks
The caller owns every instance and disposes it; an onboard only borrows it. Invites carry a secret, so never log their bytes.
Methods
| Member | Description |
|---|---|
| IsValid() | |
| Serialize() | The invite as bytes for your IPC boundary (pipe, shared memory, config field); the receiving instance turns them back with OnboardingInvite.Deserialize. |
| Deserialize(byte[]) | Parses invite bytes from OnboardingInvite.Serialize, unchanged. Bytes that are not an invite fail with StatusCode.PakeError. |
| Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
IsValid
public bool IsValid()
Returns: bool
Serialize
The invite as bytes for your IPC boundary (pipe, shared memory, config field); the
receiving instance turns them back with OnboardingInvite.Deserialize.
public Result<byte[]> Serialize()
Deserialize
Parses invite bytes from OnboardingInvite.Serialize, unchanged.
Bytes that are not an invite fail with StatusCode.PakeError.
public static Result<OnboardingInvite> Deserialize(byte[] inviteData)
Parameters
| Name | Type | Description |
|---|---|---|
inviteData | byte[] |
Returns: Result<OnboardingInvite>
Dispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()