82112b6788
* Improve response writer * Add analyzers * Error on warnings in release mode * Disable doc warnings
38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
#pragma warning disable CS1591
|
|
#pragma warning disable SA1600
|
|
|
|
using System.Threading.Tasks;
|
|
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;
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public string GetServiceXml()
|
|
{
|
|
return new MediaReceiverRegistrarXmlBuilder().GetXml();
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public Task<ControlResponse> ProcessControlRequestAsync(ControlRequest request)
|
|
{
|
|
return new ControlHandler(
|
|
_config,
|
|
Logger)
|
|
.ProcessControlRequestAsync(request);
|
|
}
|
|
}
|
|
}
|