|
|
@ -127,11 +127,14 @@ namespace Emby.Dlna.Api
|
|
|
|
public DlnaServerService(
|
|
|
|
public DlnaServerService(
|
|
|
|
IDlnaManager dlnaManager,
|
|
|
|
IDlnaManager dlnaManager,
|
|
|
|
IHttpResultFactory httpResultFactory,
|
|
|
|
IHttpResultFactory httpResultFactory,
|
|
|
|
IServerConfigurationManager configurationManager)
|
|
|
|
IServerConfigurationManager configurationManager,
|
|
|
|
|
|
|
|
IHttpContextAccessor httpContextAccessor)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_dlnaManager = dlnaManager;
|
|
|
|
_dlnaManager = dlnaManager;
|
|
|
|
_resultFactory = httpResultFactory;
|
|
|
|
_resultFactory = httpResultFactory;
|
|
|
|
_configurationManager = configurationManager;
|
|
|
|
_configurationManager = configurationManager;
|
|
|
|
|
|
|
|
object request = httpContextAccessor?.HttpContext.Items["ServiceStackRequest"] ?? throw new ArgumentNullException(nameof(httpContextAccessor));
|
|
|
|
|
|
|
|
Request = (IRequest)request;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private string GetHeader(string name)
|
|
|
|
private string GetHeader(string name)
|
|
|
|