aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Session/SessionsService.cs
diff options
context:
space:
mode:
authordkanada <dkanada@users.noreply.github.com>2019-12-10 22:11:32 +0900
committerGitHub <noreply@github.com>2019-12-10 22:11:32 +0900
commitb5d0bd0d764982c8df2c341c1f38c4d0636409c3 (patch)
treebaf1619a8fdb663d571d06f00b2fbbd5e8d0947a /MediaBrowser.Api/Session/SessionsService.cs
parent1b5da55ae554176f272b956402671170cce3817b (diff)
parent5f6bca8aeb23064a2d81c25d72ae317364959232 (diff)
Merge pull request #2020 from Bond-009/baseurl
Add support for multi segment base urls
Diffstat (limited to 'MediaBrowser.Api/Session/SessionsService.cs')
-rw-r--r--MediaBrowser.Api/Session/SessionsService.cs23
1 files changed, 18 insertions, 5 deletions
diff --git a/MediaBrowser.Api/Session/SessionsService.cs b/MediaBrowser.Api/Session/SessionsService.cs
index 6caf3b480..700861c55 100644
--- a/MediaBrowser.Api/Session/SessionsService.cs
+++ b/MediaBrowser.Api/Session/SessionsService.cs
@@ -4,6 +4,7 @@ using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using MediaBrowser.Controller;
+using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Devices;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Net;
@@ -12,6 +13,7 @@ using MediaBrowser.Controller.Session;
using MediaBrowser.Model.Dto;
using MediaBrowser.Model.Services;
using MediaBrowser.Model.Session;
+using Microsoft.Extensions.Logging;
namespace MediaBrowser.Api.Session
{
@@ -269,12 +271,12 @@ namespace MediaBrowser.Api.Session
}
/// <summary>
- /// Class SessionsService
+ /// Class SessionsService.
/// </summary>
public class SessionsService : BaseApiService
{
/// <summary>
- /// The _session manager
+ /// The _session manager.
/// </summary>
private readonly ISessionManager _sessionManager;
@@ -283,9 +285,20 @@ namespace MediaBrowser.Api.Session
private readonly IAuthenticationRepository _authRepo;
private readonly IDeviceManager _deviceManager;
private readonly ISessionContext _sessionContext;
- private IServerApplicationHost _appHost;
-
- public SessionsService(ISessionManager sessionManager, IServerApplicationHost appHost, IUserManager userManager, IAuthorizationContext authContext, IAuthenticationRepository authRepo, IDeviceManager deviceManager, ISessionContext sessionContext)
+ private readonly IServerApplicationHost _appHost;
+
+ public SessionsService(
+ ILogger<SessionsService> logger,
+ IServerConfigurationManager serverConfigurationManager,
+ IHttpResultFactory httpResultFactory,
+ ISessionManager sessionManager,
+ IServerApplicationHost appHost,
+ IUserManager userManager,
+ IAuthorizationContext authContext,
+ IAuthenticationRepository authRepo,
+ IDeviceManager deviceManager,
+ ISessionContext sessionContext)
+ : base(logger, serverConfigurationManager, httpResultFactory)
{
_sessionManager = sessionManager;
_userManager = userManager;