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/ActionableProgress.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/ActionableProgress.cs')
| -rw-r--r-- | MediaBrowser.Common/Progress/ActionableProgress.cs | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/MediaBrowser.Common/Progress/ActionableProgress.cs b/MediaBrowser.Common/Progress/ActionableProgress.cs index af69055aa..d5bcd5be9 100644 --- a/MediaBrowser.Common/Progress/ActionableProgress.cs +++ b/MediaBrowser.Common/Progress/ActionableProgress.cs @@ -5,15 +5,16 @@ using System; namespace MediaBrowser.Common.Progress { /// <summary> - /// Class ActionableProgress + /// Class ActionableProgress. /// </summary> - /// <typeparam name="T"></typeparam> + /// <typeparam name="T">The type for the action parameter.</typeparam> public class ActionableProgress<T> : IProgress<T> { /// <summary> - /// The _actions + /// The _actions. /// </summary> private Action<T> _action; + public event EventHandler<T> ProgressChanged; /// <summary> @@ -32,14 +33,4 @@ namespace MediaBrowser.Common.Progress _action?.Invoke(value); } } - - public class SimpleProgress<T> : IProgress<T> - { - public event EventHandler<T> ProgressChanged; - - public void Report(T value) - { - ProgressChanged?.Invoke(this, value); - } - } } |
