mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 02:18:54 -07:00
43 lines
1.3 KiB
C#
43 lines
1.3 KiB
C#
using MediaBrowser.Common.Net;
|
|
using MediaBrowser.Controller.Configuration;
|
|
using MediaBrowser.Controller.Dlna;
|
|
using Emby.Dlna.Service;
|
|
using MediaBrowser.Model.Logging;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using MediaBrowser.Model.Xml;
|
|
|
|
namespace Emby.Dlna.MediaReceiverRegistrar
|
|
{
|
|
public class MediaReceiverRegistrar : BaseService, IMediaReceiverRegistrar, IDisposable
|
|
{
|
|
private readonly IServerConfigurationManager _config;
|
|
protected readonly IXmlReaderSettingsFactory XmlReaderSettingsFactory;
|
|
|
|
public MediaReceiverRegistrar(ILogger logger, IHttpClient httpClient, IServerConfigurationManager config, IXmlReaderSettingsFactory xmlReaderSettingsFactory)
|
|
: base(logger, httpClient)
|
|
{
|
|
_config = config;
|
|
XmlReaderSettingsFactory = xmlReaderSettingsFactory;
|
|
}
|
|
|
|
public string GetServiceXml(IDictionary<string, string> headers)
|
|
{
|
|
return new MediaReceiverRegistrarXmlBuilder().GetXml();
|
|
}
|
|
|
|
public ControlResponse ProcessControlRequest(ControlRequest request)
|
|
{
|
|
return new ControlHandler(
|
|
_config,
|
|
Logger, XmlReaderSettingsFactory)
|
|
.ProcessControlRequest(request);
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|