You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.1 KiB
40 lines
1.1 KiB
5 years ago
|
#pragma warning disable CS1591
|
||
|
|
||
5 years ago
|
using System.Threading.Tasks;
|
||
8 years ago
|
using Emby.Dlna.Service;
|
||
6 years ago
|
using MediaBrowser.Common.Net;
|
||
|
using MediaBrowser.Controller.Configuration;
|
||
|
using Microsoft.Extensions.Logging;
|
||
8 years ago
|
|
||
8 years ago
|
namespace Emby.Dlna.MediaReceiverRegistrar
|
||
8 years ago
|
{
|
||
4 years ago
|
public class MediaReceiverRegistrarService : BaseService, IMediaReceiverRegistrar
|
||
8 years ago
|
{
|
||
|
private readonly IServerConfigurationManager _config;
|
||
|
|
||
4 years ago
|
public MediaReceiverRegistrarService(
|
||
|
ILogger<MediaReceiverRegistrarService> logger,
|
||
5 years ago
|
IHttpClient httpClient,
|
||
|
IServerConfigurationManager config)
|
||
8 years ago
|
: base(logger, httpClient)
|
||
|
{
|
||
|
_config = config;
|
||
|
}
|
||
|
|
||
5 years ago
|
/// <inheritdoc />
|
||
6 years ago
|
public string GetServiceXml()
|
||
8 years ago
|
{
|
||
|
return new MediaReceiverRegistrarXmlBuilder().GetXml();
|
||
|
}
|
||
|
|
||
5 years ago
|
/// <inheritdoc />
|
||
|
public Task<ControlResponse> ProcessControlRequestAsync(ControlRequest request)
|
||
8 years ago
|
{
|
||
|
return new ControlHandler(
|
||
|
_config,
|
||
6 years ago
|
Logger)
|
||
5 years ago
|
.ProcessControlRequestAsync(request);
|
||
8 years ago
|
}
|
||
|
}
|
||
|
}
|