aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Progress/SimpleProgress.cs
diff options
context:
space:
mode:
authorVasily <JustAMan@users.noreply.github.com>2020-06-04 11:56:41 +0300
committerGitHub <noreply@github.com>2020-06-04 11:56:41 +0300
commit21505377d5af7e83bf8386831be78441be3e1b9a (patch)
tree78c7583e01bcb9f60874fbb13d01449e6637126a /MediaBrowser.Common/Progress/SimpleProgress.cs
parent22527729448b2f85d85058752f3a6dfb29d2e2ca (diff)
parentaf7edfc22057462bf06c7770929965b8b57da07d (diff)
Merge pull request #3236 from Bond-009/common
Enable StyleCop for MediaBrowser.Common
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);
+ }
+ }
+}