diff options
| author | crobibero <cody@robibe.ro> | 2020-06-13 15:06:07 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-06-13 15:06:07 -0600 |
| commit | 39376bace33a13e225647de174269b2e61ec5a1e (patch) | |
| tree | ebc439885ad63f7936bde81deb2c04227cb81e54 /MediaBrowser.Common/Progress/SimpleProgress.cs | |
| parent | 6c53e36ccf1f27defae6faa5791598258bc604ab (diff) | |
| parent | 0011e8df47380936742302ef40639a4626a780ed (diff) | |
Merge remote-tracking branch 'upstream/api-migration' into api-scheduled-tasks
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); + } + } +} |
