aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Progress/SimpleProgress.cs
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-06-13 15:27:03 -0600
committercrobibero <cody@robibe.ro>2020-06-13 15:27:03 -0600
commitae514da8400ab004258cb38943a8cb0e7aea1cff (patch)
treee332a89aa42a89f3b3b9ff308cb32ec976373040 /MediaBrowser.Common/Progress/SimpleProgress.cs
parent22f56842bd6422a8f2789a2ce5a7d6f4caf563f2 (diff)
parent0011e8df47380936742302ef40639a4626a780ed (diff)
Merge remote-tracking branch 'upstream/api-migration' into api-environment
Diffstat (limited to 'MediaBrowser.Common/Progress/SimpleProgress.cs')
-rw-r--r--MediaBrowser.Common/Progress/SimpleProgress.cs16
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);
+ }
+ }
+}