diff options
| author | crobibero <cody@robibe.ro> | 2020-06-20 15:56:42 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-06-20 15:56:42 -0600 |
| commit | 3329b08b40bb7d7e98264969c1b4c9e356fbdec2 (patch) | |
| tree | fbbaa4e95adf35533f037ae18490d908eff5a608 /MediaBrowser.Common/Progress/SimpleProgress.cs | |
| parent | 7a77b9928f2c8326e85629d3c900e86c3b26342a (diff) | |
| parent | 576ffeb2a99e79caf0035eb9166436d1e0161d2c (diff) | |
Merge remote-tracking branch 'upstream/api-migration' into api-playlist
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); + } + } +} |
