jellyfin-server/MediaBrowser.Common/Progress/SimpleProgress.cs

18 lines
345 B
C#
Raw Normal View History

#pragma warning disable CS1591
2021-03-09 04:57:38 +00:00
#pragma warning disable CA1003
using System;
namespace MediaBrowser.Common.Progress
{
public class SimpleProgress<T> : IProgress<T>
{
public event EventHandler<T>? ProgressChanged;
public void Report(T value)
{
ProgressChanged?.Invoke(this, value);
}
}
}