|
|
@ -182,7 +182,7 @@ namespace MediaBrowser.WebDashboard.Api
|
|
|
|
/// <returns>System.Object.</returns>
|
|
|
|
/// <returns>System.Object.</returns>
|
|
|
|
public object Get(GetDashboardInfo request)
|
|
|
|
public object Get(GetDashboardInfo request)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var result = GetDashboardInfo(_appHost, Logger, _taskManager, _userManager, _libraryManager, _sessionManager).Result;
|
|
|
|
var result = GetDashboardInfo(_appHost, Logger, _taskManager, _userManager, _libraryManager, _sessionManager).Result;
|
|
|
|
|
|
|
|
|
|
|
|
return ResultFactory.GetOptimizedResult(RequestContext, result);
|
|
|
|
return ResultFactory.GetOptimizedResult(RequestContext, result);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -197,10 +197,10 @@ namespace MediaBrowser.WebDashboard.Api
|
|
|
|
/// <param name="libraryManager">The library manager.</param>
|
|
|
|
/// <param name="libraryManager">The library manager.</param>
|
|
|
|
/// <param name="connectionManager">The connection manager.</param>
|
|
|
|
/// <param name="connectionManager">The connection manager.</param>
|
|
|
|
/// <returns>DashboardInfo.</returns>
|
|
|
|
/// <returns>DashboardInfo.</returns>
|
|
|
|
public static async Task<DashboardInfo> GetDashboardInfo(IServerApplicationHost appHost,
|
|
|
|
public static async Task<DashboardInfo> GetDashboardInfo(IServerApplicationHost appHost,
|
|
|
|
ILogger logger,
|
|
|
|
ILogger logger,
|
|
|
|
ITaskManager taskManager,
|
|
|
|
ITaskManager taskManager,
|
|
|
|
IUserManager userManager,
|
|
|
|
IUserManager userManager,
|
|
|
|
ILibraryManager libraryManager,
|
|
|
|
ILibraryManager libraryManager,
|
|
|
|
ISessionManager connectionManager)
|
|
|
|
ISessionManager connectionManager)
|
|
|
|
{
|
|
|
|
{
|
|
|
|