/ src / modules / cmdpal / Core / Microsoft.CmdPal.Core.ViewModels / IBackgroundPropertyChangedNotification.cs
IBackgroundPropertyChangedNotification.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  using System.ComponentModel;
 6  
 7  namespace Microsoft.CmdPal.Core.ViewModels;
 8  
 9  /// <summary>
10  /// Provides a notification mechanism for property changes that fires
11  /// synchronously on the calling thread.
12  /// </summary>
13  public interface IBackgroundPropertyChangedNotification
14  {
15      /// <summary>
16      /// Occurs when the value of a property changes.
17      /// </summary>
18      event PropertyChangedEventHandler? PropertyChangedBackground;
19  }