public sealed record RunicWindowCloseResult : IEquatable<RunicWindowCloseResult> The admission result of a graceful Window or content-session close.
Parameters
DrainedWhether every accepted operation reached a terminal result within the timeout, and the work of the scopes the Window drains ended.
RemainingOperationsOperations still running at the timeout. They were asked to cancel. Durable work is counted in
RunicWindowCloseResult.RemainingDurableWorkinstead.CompletionCompletes when the remaining operations have finished and the closer has released what it owns. A Window host faults it with any release failures.
Constructors
RunicWindowCloseResult
public RunicWindowCloseResult(bool Drained, int RemainingOperations, Task Completion) The admission result of a graceful Window or content-session close.
Parameters
DrainedWhether every accepted operation reached a terminal result within the timeout, and the work of the scopes the Window drains ended.
RemainingOperationsOperations still running at the timeout. They were asked to cancel. Durable work is counted in
RunicWindowCloseResult.RemainingDurableWorkinstead.CompletionCompletes when the remaining operations have finished and the closer has released what it owns. A Window host faults it with any release failures.
Properties
Completion
public Task Completion { get; init; } Completes when the remaining operations have finished and the closer has released what it owns. A Window host faults it with any release failures.
Drained
public bool Drained { get; init; } Whether every accepted operation reached a terminal result within the timeout, and the work of the scopes the Window drains ended.
PagesAcknowledged
public bool PagesAcknowledged { get; init; } Whether every page of the window that understands it acknowledged the close within the close's timeout, at most 5 seconds: it rendered its last state and shows that the application closed the window. true when no page could acknowledge it, such as a page of an older client. A close without a timeout, such as IAsyncDisposable.DisposeAsync, tells the pages but does not wait, so it is false while such a page is connected.
RemainingDurableWork
public int RemainingDurableWork { get; init; } The durable work still running when the close ended its wait: operations declared RunicOperationClose.Durable and the unfinished work of the scopes the Window drains (IRunicWindowContext.DrainOnClose). None of it was asked to cancel, and RunicWindowCloseResult.Completion completes only after it. It is not counted in RunicWindowCloseResult.RemainingOperations.
RemainingOperations
public int RemainingOperations { get; init; } Operations still running at the timeout. They were asked to cancel. Durable work is counted in RunicWindowCloseResult.RemainingDurableWork instead.