diff options
| author | Max Git <rotvel@gmail.com> | 2020-06-05 00:57:35 +0200 |
|---|---|---|
| committer | Max Git <rotvel@gmail.com> | 2020-06-05 00:57:35 +0200 |
| commit | 268e87bbf27a724edd9ea665619563729998aba9 (patch) | |
| tree | d3c5a70373b8ba72505db99b56f48a6a69e0ce7e /MediaBrowser.Common/Progress/SimpleProgress.cs | |
| parent | beb8a58643178626abc1e0d9e64f4e79b27cdec3 (diff) | |
| parent | 0b0184de2e3da7af817e0217de9d8d4f2de59ba8 (diff) | |
Merge branch 'master' into feature/ffmpeg-version-check
Diffstat (limited to 'MediaBrowser.Common/Progress/SimpleProgress.cs')
| -rw-r--r-- | MediaBrowser.Common/Progress/SimpleProgress.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/MediaBrowser.Common/Progress/SimpleProgress.cs b/MediaBrowser.Common/Progress/SimpleProgress.cs new file mode 100644 index 000000000..d75675bf1 --- /dev/null +++ b/MediaBrowser.Common/Progress/SimpleProgress.cs @@ -0,0 +1,16 @@ +#pragma warning disable CS1591 + +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); + } + } +} |
