jellyfin/Emby.Dlna/MediaReceiverRegistrar/MediaReceiverRegistrar.cs

40 lines
1.1 KiB
C#
Raw Normal View History

2016-10-29 15:22:20 -07:00
using MediaBrowser.Common.Net;
using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Dlna;
2016-10-29 15:34:54 -07:00
using Emby.Dlna.Service;
2016-10-29 15:22:20 -07:00
using MediaBrowser.Model.Logging;
using System;
using System.Collections.Generic;
2016-10-29 15:34:54 -07:00
namespace Emby.Dlna.MediaReceiverRegistrar
2016-10-29 15:22:20 -07:00
{
public class MediaReceiverRegistrar : BaseService, IMediaReceiverRegistrar, IDisposable
{
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);
}
public void Dispose()
{
}
}
}