Свойство | Тип | Описание | |
---|---|---|---|
TraceSource |
Метод | Описание | |
---|---|---|
DiscoverDeviceAsync ( ) : Task |
Discovers and returns an UPnp or Pmp NAT device; otherwise a
|
|
DiscoverDeviceAsync ( PortMapper portMapper, |
Discovers and returns a NAT device for the specified type; otherwise a It allows to specify the NAT type to discover as well as the cancellation token in order. |
|
DiscoverDevicesAsync ( PortMapper portMapper, |
Discovers and returns all NAT devices for the specified type. If no NAT device is found it returns an empty enumerable
|
|
ReleaseAll ( ) : void |
Release all ports opened by Open.NAT. If ReleaseOnShutdown value is true, it release all the mappings created through the library. |
Метод | Описание | |
---|---|---|
DiscoverAsync ( PortMapper portMapper, bool onlyOne, |
||
ReleaseSessionMappings ( ) : void | ||
RenewMappings ( object state ) : void |
public DiscoverDeviceAsync ( PortMapper portMapper, |
||
portMapper | PortMapper | Port mapper protocol; Upnp, Pmp or both |
cancellationTokenSource | Cancellation token source for cancelling the discovery process | |
Результат | Task |
public DiscoverDevicesAsync ( PortMapper portMapper, |
||
portMapper | PortMapper | Port mapper protocol; Upnp, Pmp or both |
cancellationTokenSource | Cancellation token source for cancelling the discovery process | |
Результат | Task |