diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-09-09 21:16:40 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-09 21:16:40 -0500 |
| commit | 583325356493c0123a6410e6aa34e60bf148f219 (patch) | |
| tree | f12cc20285998bbdf5d3313c621429f8096c87ea /src/slskd/Application/Management/ManagementService.cs | |
| parent | 3d645132c2613bcd376ec710e6d1d02e9912cf15 (diff) | |
| parent | eae8db1aecdae631edc0f2d370d3c704d49c58b9 (diff) | |
| download | slskd-583325356493c0123a6410e6aa34e60bf148f219.tar.gz | |
Merge pull request #191 from slskd/version-check
Add a version check on startup, and elements to the UI to indicate when a new version is available
Diffstat (limited to 'src/slskd/Application/Management/ManagementService.cs')
| -rw-r--r-- | src/slskd/Application/Management/ManagementService.cs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/slskd/Application/Management/ManagementService.cs b/src/slskd/Application/Management/ManagementService.cs index 3d7bd442..4319c9e3 100644 --- a/src/slskd/Application/Management/ManagementService.cs +++ b/src/slskd/Application/Management/ManagementService.cs @@ -21,6 +21,7 @@ namespace slskd.Management { using System; using System.Threading.Tasks; + using Serilog; using Soulseek; /// <summary> @@ -32,25 +33,27 @@ namespace slskd.Management /// Initializes a new instance of the <see cref="ManagementService"/> class. /// </summary> /// <param name="optionsMonitor">The options monitor used to derive application options.</param> - /// <param name="serviceStateMonitor">The state monitor for application service state.</param> + /// <param name="applicationStateMonitor">The state monitor for application service state.</param> /// <param name="soulseekClient">The Soulseek client.</param> /// <param name="sharedFileCache">The shared file cache.</param> public ManagementService( IOptionsMonitor<Options> optionsMonitor, - IStateMonitor<ApplicationState> serviceStateMonitor, + IStateMonitor<ApplicationState> applicationStateMonitor, ISoulseekClient soulseekClient, ISharedFileCache sharedFileCache) { OptionsMonitor = optionsMonitor; - ServiceStateMonitor = serviceStateMonitor; + ApplicationStateMonitor = applicationStateMonitor; Client = soulseekClient; SharedFileCache = sharedFileCache; } + private ILogger Log { get; } = Serilog.Log.ForContext<ManagementService>(); + /// <summary> /// Gets the current state of the slskd service. /// </summary> - public ApplicationState ApplicationState => ServiceStateMonitor.CurrentValue; + public ApplicationState ApplicationState => ApplicationStateMonitor.CurrentValue; /// <summary> /// Gets the current state of the connection to the Soulseek server. @@ -72,7 +75,7 @@ namespace slskd.Management private ISoulseekClient Client { get; } private Options Options => OptionsMonitor.CurrentValue; private IOptionsMonitor<Options> OptionsMonitor { get; } - private IStateMonitor<ApplicationState> ServiceStateMonitor { get; } + private IStateMonitor<ApplicationState> ApplicationStateMonitor { get; } private ISharedFileCache SharedFileCache { get; } /// <summary> |
