2021-11-03 22:27:50 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
|
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
|
using Microsoft.AspNetCore.SignalR;
|
|
|
|
|
using Microsoft.AspNetCore.Identity;
|
|
|
|
|
|
|
|
|
|
using Selector.Web.Hubs;
|
|
|
|
|
using Selector.Web.Service;
|
|
|
|
|
using Selector.Model;
|
|
|
|
|
|
|
|
|
|
namespace Selector.Web.Pages
|
|
|
|
|
{
|
|
|
|
|
public class NowModel : PageModel
|
|
|
|
|
{
|
|
|
|
|
private readonly ILogger<NowModel> Logger;
|
|
|
|
|
private readonly INowPlayingMappingFactory MappingFactory;
|
|
|
|
|
private readonly CacheHubProxy HubProxy;
|
|
|
|
|
private readonly UserManager<ApplicationUser> UserManager;
|
|
|
|
|
|
|
|
|
|
public NowModel(ILogger<NowModel> logger,
|
|
|
|
|
INowPlayingMappingFactory mappingFactory,
|
|
|
|
|
CacheHubProxy hubProxy,
|
|
|
|
|
UserManager<ApplicationUser> userManager)
|
|
|
|
|
{
|
|
|
|
|
Logger = logger;
|
|
|
|
|
MappingFactory = mappingFactory;
|
|
|
|
|
HubProxy = hubProxy;
|
|
|
|
|
UserManager = userManager;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void OnGet()
|
|
|
|
|
{
|
2021-11-05 07:58:48 +00:00
|
|
|
|
|
2021-11-03 22:27:50 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|