mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 22:07:13 -04:00
Add docs
This commit is contained in:
parent
b0a25c4237
commit
558baeac48
@ -14,6 +14,9 @@ using Mono.Nat;
|
|||||||
|
|
||||||
namespace Emby.Server.Implementations.EntryPoints
|
namespace Emby.Server.Implementations.EntryPoints
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Server entrypoint handling external port forwarding.
|
||||||
|
/// </summary>
|
||||||
public class ExternalPortForwarding : IServerEntryPoint
|
public class ExternalPortForwarding : IServerEntryPoint
|
||||||
{
|
{
|
||||||
private readonly IServerApplicationHost _appHost;
|
private readonly IServerApplicationHost _appHost;
|
||||||
@ -21,14 +24,20 @@ namespace Emby.Server.Implementations.EntryPoints
|
|||||||
private readonly IServerConfigurationManager _config;
|
private readonly IServerConfigurationManager _config;
|
||||||
private readonly IDeviceDiscovery _deviceDiscovery;
|
private readonly IDeviceDiscovery _deviceDiscovery;
|
||||||
|
|
||||||
private Timer _timer;
|
|
||||||
|
|
||||||
private readonly object _createdRulesLock = new object();
|
private readonly object _createdRulesLock = new object();
|
||||||
private List<IPEndPoint> _createdRules = new List<IPEndPoint>();
|
private List<IPEndPoint> _createdRules = new List<IPEndPoint>();
|
||||||
|
private Timer _timer;
|
||||||
private string _lastConfigIdentifier;
|
private string _lastConfigIdentifier;
|
||||||
|
|
||||||
private bool _disposed = false;
|
private bool _disposed = false;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="ExternalPortForwarding"/> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="logger">The logger.</param>
|
||||||
|
/// <param name="appHost">The application host.</param>
|
||||||
|
/// <param name="config">The configuration manager.</param>
|
||||||
|
/// <param name="deviceDiscovery">The device discovery.</param>
|
||||||
public ExternalPortForwarding(
|
public ExternalPortForwarding(
|
||||||
ILogger<ExternalPortForwarding> logger,
|
ILogger<ExternalPortForwarding> logger,
|
||||||
IServerApplicationHost appHost,
|
IServerApplicationHost appHost,
|
||||||
@ -66,6 +75,7 @@ namespace Emby.Server.Implementations.EntryPoints
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
public Task RunAsync()
|
public Task RunAsync()
|
||||||
{
|
{
|
||||||
if (_config.Configuration.EnableUPnP && _config.Configuration.EnableRemoteAccess)
|
if (_config.Configuration.EnableUPnP && _config.Configuration.EnableRemoteAccess)
|
||||||
|
Loading…
Reference in New Issue
Block a user