/ src / modules / cmdpal / Core / Microsoft.CmdPal.Core.ViewModels / AsyncNavigationRequest.cs
AsyncNavigationRequest.cs
 1  // Copyright (c) Microsoft Corporation
 2  // The Microsoft Corporation licenses this file to you under the MIT license.
 3  // See the LICENSE file in the project root for more information.
 4  
 5  namespace Microsoft.CmdPal.Core.ViewModels;
 6  
 7  /// <summary>
 8  /// Encapsulates a navigation request within Command Palette view models.
 9  /// </summary>
10  /// <param name="TargetViewModel">A view model that should be navigated to.</param>
11  /// <param name="NavigationToken"> A <see cref="CancellationToken"/> that can be used to cancel the pending navigation.</param>
12  public record AsyncNavigationRequest(object? TargetViewModel, CancellationToken NavigationToken);