diff options
| author | Vasily <JustAMan@users.noreply.github.com> | 2020-06-04 11:56:41 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-04 11:56:41 +0300 |
| commit | 21505377d5af7e83bf8386831be78441be3e1b9a (patch) | |
| tree | 78c7583e01bcb9f60874fbb13d01449e6637126a /MediaBrowser.Common/Progress/SimpleProgress.cs | |
| parent | 22527729448b2f85d85058752f3a6dfb29d2e2ca (diff) | |
| parent | af7edfc22057462bf06c7770929965b8b57da07d (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.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); + } + } +} |
