ICancellationAwareCommand.cs 564 B

12345678910111213141516
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. namespace CommunityToolkit.Mvvm.Input.Internals;
  5. /// <summary>
  6. /// An interface for commands that know whether they support cancellation or not.
  7. /// </summary>
  8. internal interface ICancellationAwareCommand
  9. {
  10. /// <summary>
  11. /// Gets whether or not the current command supports cancellation.
  12. /// </summary>
  13. bool IsCancellationSupported { get; }
  14. }