IProgress.cs 580 B

123456789101112131415
  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 System
  5. {
  6. /// <summary>Defines a provider for progress updates.</summary>
  7. /// <typeparam name="T">The type of progress update value.</typeparam>
  8. public interface IProgress<in T>
  9. {
  10. /// <summary>Reports a progress update.</summary>
  11. /// <param name="value">The value of the updated progress.</param>
  12. void Report(T value);
  13. }
  14. }