aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Application/IApplication.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-09-08 09:13:30 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-09-08 09:13:30 -0500
commit161f3517d703658bf296282a2e9fab44f9149134 (patch)
treece2f91dfd5c075604f02fe9c5f48bae70665147c /src/slskd/Application/IApplication.cs
parentca5c375ed5198dc283a51f28b232df4c72e3e04f (diff)
downloadslskd-161f3517d703658bf296282a2e9fab44f9149134.tar.gz
add IApplication interface, implement version check, add Application to DI
Diffstat (limited to 'src/slskd/Application/IApplication.cs')
-rw-r--r--src/slskd/Application/IApplication.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/slskd/Application/IApplication.cs b/src/slskd/Application/IApplication.cs
new file mode 100644
index 00000000..45cf0a10
--- /dev/null
+++ b/src/slskd/Application/IApplication.cs
@@ -0,0 +1,27 @@
+// <copyright file="IApplication.cs" company="slskd Team">
+// Copyright (c) slskd Team. All rights reserved.
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published
+// by the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see https://www.gnu.org/licenses/.
+// </copyright>
+
+namespace slskd
+{
+ using System.Threading.Tasks;
+ using Microsoft.Extensions.Hosting;
+
+ public interface IApplication : IHostedService
+ {
+ public Task CheckVersionAsync();
+ }
+}