aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Progress/SimpleProgress.cs
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-07-31 10:17:51 -0600
committercrobibero <cody@robibe.ro>2020-07-31 10:17:51 -0600
commit3d5f89ebf96f3d9689748a8a5057cd69cace859e (patch)
tree03e55f52385405f018902b6dbd70041466fd7c08 /MediaBrowser.Common/Progress/SimpleProgress.cs
parent461b298be7247afd7f7962604efab3b58b9dae4b (diff)
parentcb31aba5ddea9b961872946ee2d79fdac91de293 (diff)
Merge remote-tracking branch 'upstream/api-migration' into api-dlna-server
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);
+ }
+ }
+}