aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Progress/SimpleProgress.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2020-06-03 13:04:45 +0200
committerBond-009 <bond.009@outlook.com>2020-06-03 13:04:45 +0200
commitf404e915eeef6cc9b05c6d006569b6d3a3e54eee (patch)
tree30f3de8d2f494bfc1c42f262d17096105062cb11 /MediaBrowser.Common/Progress/SimpleProgress.cs
parent40502a33e0f0e3c84487be6d3eff2be35c1448ad (diff)
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);
+ }
+ }
+}