a9302b8b53
This removes the amount of stuff that needs to be passed around Also removes some unneeded `ManagedFileSystem` usage
33 lines
973 B
C#
33 lines
973 B
C#
using System.Collections.Generic;
|
|
using Emby.Dlna.Service;
|
|
using MediaBrowser.Common.Net;
|
|
using MediaBrowser.Controller.Configuration;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace Emby.Dlna.MediaReceiverRegistrar
|
|
{
|
|
public class MediaReceiverRegistrar : BaseService, IMediaReceiverRegistrar
|
|
{
|
|
private readonly IServerConfigurationManager _config;
|
|
|
|
public MediaReceiverRegistrar(ILogger logger, IHttpClient httpClient, IServerConfigurationManager config)
|
|
: base(logger, httpClient)
|
|
{
|
|
_config = config;
|
|
}
|
|
|
|
public string GetServiceXml(IDictionary<string, string> headers)
|
|
{
|
|
return new MediaReceiverRegistrarXmlBuilder().GetXml();
|
|
}
|
|
|
|
public ControlResponse ProcessControlRequest(ControlRequest request)
|
|
{
|
|
return new ControlHandler(
|
|
_config,
|
|
Logger)
|
|
.ProcessControlRequest(request);
|
|
}
|
|
}
|
|
}
|