aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/API/Controllers
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-05-21 08:54:41 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-05-21 08:54:41 -0500
commit82a38b0f0b405c03503f3b1fff81a7981227b267 (patch)
tree432afbaf7f55c1dc571a48661564078969a6049b /src/slskd/API/Controllers
parent4f1d983ad758e5533cc85648f2d489952f6975e3 (diff)
downloadslskd-82a38b0f0b405c03503f3b1fff81a7981227b267.tar.gz
warnings
Diffstat (limited to 'src/slskd/API/Controllers')
-rw-r--r--src/slskd/API/Controllers/SessionController.cs4
-rw-r--r--src/slskd/API/Controllers/TransfersController.cs7
2 files changed, 5 insertions, 6 deletions
diff --git a/src/slskd/API/Controllers/SessionController.cs b/src/slskd/API/Controllers/SessionController.cs
index 978e5496..2011aba3 100644
--- a/src/slskd/API/Controllers/SessionController.cs
+++ b/src/slskd/API/Controllers/SessionController.cs
@@ -15,8 +15,6 @@
// along with this program. If not, see https://www.gnu.org/licenses/.
// </copyright>
-using Microsoft.Extensions.Options;
-
namespace slskd.API.Controllers
{
using System;
@@ -40,7 +38,7 @@ namespace slskd.API.Controllers
public class SessionController : ControllerBase
{
public SessionController(
- IOptionsSnapshot<Options> optionsSnapshot,
+ Microsoft.Extensions.Options.IOptionsSnapshot<Options> optionsSnapshot,
SymmetricSecurityKey jwtSigningKey)
{
Options = optionsSnapshot.Value;
diff --git a/src/slskd/API/Controllers/TransfersController.cs b/src/slskd/API/Controllers/TransfersController.cs
index b40708a5..f730a75e 100644
--- a/src/slskd/API/Controllers/TransfersController.cs
+++ b/src/slskd/API/Controllers/TransfersController.cs
@@ -15,8 +15,6 @@
// along with this program. If not, see https://www.gnu.org/licenses/.
// </copyright>
-using Microsoft.Extensions.Options;
-
namespace slskd.API.Controllers
{
using System;
@@ -47,7 +45,10 @@ namespace slskd.API.Controllers
/// <param name="options"></param>
/// <param name="client"></param>
/// <param name="tracker"></param>
- public TransfersController(IOptionsSnapshot<Options> options, ISoulseekClient client, ITransferTracker tracker)
+ public TransfersController(
+ Microsoft.Extensions.Options.IOptionsSnapshot<Options> options,
+ ISoulseekClient client,
+ ITransferTracker tracker)
{
Client = client;
Tracker = tracker;