From a0176d5ae8c03624b5dbbf2d9689993db6878def Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 1 Aug 2021 22:46:52 -0500 Subject: make StateMonitor generic --- src/slskd/Application/IStateMonitor.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/slskd/Application/IStateMonitor.cs') diff --git a/src/slskd/Application/IStateMonitor.cs b/src/slskd/Application/IStateMonitor.cs index e4c8fc26..e36d083d 100644 --- a/src/slskd/Application/IStateMonitor.cs +++ b/src/slskd/Application/IStateMonitor.cs @@ -22,25 +22,25 @@ namespace slskd /// /// Used for notifications when changes. /// - public interface IStateMonitor + public interface IStateMonitor { /// /// Gets the current application state. /// - State Current { get; } + T Current { get; } /// - /// Registers a listener to be called whenever changes. + /// Registers a listener to be called whenever changes. /// /// Registers a listener to be called whenver state changes. /// An which should be disposed to stop listening for changes. - IDisposable OnChange(Action<(State Previous, State Current)> listener); + IDisposable OnChange(Action<(T Previous, T Current)> listener); /// /// Replaces the current state with the value resolved by the . /// /// Given the current state, resolves a new state value. /// The updated state. - State Set(Func setter); + T Set(Func setter); } } -- cgit v1.2.3