UI Tookit UI Tookit
UI Tookit UI Tookit
DocFX + Singulink = ♥

Search Results for

    Method TryShutDownProbeAsync

    TryShutDownProbeAsync()

    Runs only the cancellable "navigating away" voting phase of a full shutdown by invoking OnNavigatingAwayAsync / OnRouteNavigatingAsync on each currently navigated-to route item. Returns true if no view model cancelled, otherwise false. Performs no teardown so it is safe to use as a non-destructive probe (e.g. for the WebAssembly beforeunload event). Returns a faulted/false task without starting any work if CanMaybeShutDownNow is false. The navigator is marked busy synchronously and unmarked when the returned task completes, regardless of whether the caller awaits it, so it is safe to call from synchronous host event handlers.

    Declaration
    protected Task<bool> TryShutDownProbeAsync()
    Returns
    Type Description
    Task<bool>
    © Singulink. All rights reserved.