diff options
| author | Bond-009 <bond.009@outlook.com> | 2024-02-07 16:24:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-07 16:24:36 +0100 |
| commit | 143ef71528eb7adfe87cd3dcb746ac655fb0aef8 (patch) | |
| tree | b679a844aa22a8e69775b3fac9d753ee111efc8b /MediaBrowser.Common/Progress/ActionableProgress.cs | |
| parent | 7e5c5eaff8e54aaa3f1f847e1b3c0031973763fe (diff) | |
| parent | 505c09c85b9816519c795c114e6100585b35e249 (diff) | |
Merge pull request #10969 from barronpm/progress-cleanup
Progress cleanup
Diffstat (limited to 'MediaBrowser.Common/Progress/ActionableProgress.cs')
| -rw-r--r-- | MediaBrowser.Common/Progress/ActionableProgress.cs | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/MediaBrowser.Common/Progress/ActionableProgress.cs b/MediaBrowser.Common/Progress/ActionableProgress.cs deleted file mode 100644 index 0ba46ea3b..000000000 --- a/MediaBrowser.Common/Progress/ActionableProgress.cs +++ /dev/null @@ -1,37 +0,0 @@ -#pragma warning disable CS1591 -#pragma warning disable CA1003 - -using System; - -namespace MediaBrowser.Common.Progress -{ - /// <summary> - /// Class ActionableProgress. - /// </summary> - /// <typeparam name="T">The type for the action parameter.</typeparam> - public class ActionableProgress<T> : IProgress<T> - { - /// <summary> - /// The _actions. - /// </summary> - private Action<T>? _action; - - public event EventHandler<T>? ProgressChanged; - - /// <summary> - /// Registers the action. - /// </summary> - /// <param name="action">The action.</param> - public void RegisterAction(Action<T> action) - { - _action = action; - } - - public void Report(T value) - { - ProgressChanged?.Invoke(this, value); - - _action?.Invoke(value); - } - } -} |
