public sealed record ApplicationInstanceOptions : IEquatable<ApplicationInstanceOptions> How ApplicationInstance.ClaimAsync forwards launches.
Constructors
ApplicationInstanceOptions
public ApplicationInstanceOptions() No documentation.
Properties
ForwardOnly
public bool ForwardOnly { get; init; } Whether this process only forwards its launch and never becomes the running instance: without one, ApplicationInstance.ClaimAsync reports NotRunning, and the launch was not handled. For a command line that hands its work to a running daemon or does it itself.
Remarks
An instance that is starting or ending is waited for as with a claim: the launch is forwarded to it, or reported not running once it ended. Other launches never wait for this process.
ReplyToLaunches
public bool ReplyToLaunches { get; init; } Whether launches of this application are answered. A later launch waits for the running instance's messages and exit status in Forwarded.Reply; as the running instance, launches from such processes carry ApplicationLaunch.Reply. Launches that only hand over their arguments still arrive, without a reply.
Remarks
Set it in every process of the application, so the running instance answers whichever launch comes later. An instance claimed without it, or by an SDK before 0.8.0-preview.3, refuses launches that wait for a reply rather than leaving them unanswered.