diff options
| author | Bond_009 <bond.009@outlook.com> | 2019-11-01 21:25:37 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2019-11-01 21:25:37 +0100 |
| commit | 558baeac48abfe6ee82b94cb2ee664160677c8c7 (patch) | |
| tree | b53247e8e0cff3fbcebb4923bdb0ce0b9fef234e /Emby.Server.Implementations/EntryPoints/ExternalPortForwarding.cs | |
| parent | b0a25c4237c33ad961ed7805c9f6fd810997df36 (diff) | |
Add docs
Diffstat (limited to 'Emby.Server.Implementations/EntryPoints/ExternalPortForwarding.cs')
| -rw-r--r-- | Emby.Server.Implementations/EntryPoints/ExternalPortForwarding.cs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/EntryPoints/ExternalPortForwarding.cs b/Emby.Server.Implementations/EntryPoints/ExternalPortForwarding.cs index 2f3d2c288..7cf850932 100644 --- a/Emby.Server.Implementations/EntryPoints/ExternalPortForwarding.cs +++ b/Emby.Server.Implementations/EntryPoints/ExternalPortForwarding.cs @@ -14,6 +14,9 @@ using Mono.Nat; namespace Emby.Server.Implementations.EntryPoints { + /// <summary> + /// Server entrypoint handling external port forwarding. + /// </summary> public class ExternalPortForwarding : IServerEntryPoint { private readonly IServerApplicationHost _appHost; @@ -21,14 +24,20 @@ namespace Emby.Server.Implementations.EntryPoints private readonly IServerConfigurationManager _config; private readonly IDeviceDiscovery _deviceDiscovery; - private Timer _timer; - private readonly object _createdRulesLock = new object(); private List<IPEndPoint> _createdRules = new List<IPEndPoint>(); + private Timer _timer; private string _lastConfigIdentifier; 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( ILogger<ExternalPortForwarding> logger, IServerApplicationHost appHost, @@ -66,6 +75,7 @@ namespace Emby.Server.Implementations.EntryPoints } } + /// <inheritdoc /> public Task RunAsync() { if (_config.Configuration.EnableUPnP && _config.Configuration.EnableRemoteAccess) |
