NatDiscoverer..::..DiscoverDevicesAsync Method
Discovers and returns all NAT devices for the specified type. If no NAT device is found it returns an empty enumerable
Namespace:
com.onlineobject.objectnetAssembly: ObjectNetAPI (in ObjectNetAPI.dll)
Syntax
public Task<IEnumerable<NatDevice>> DiscoverDevicesAsync( PortMapper portMapper, CancellationTokenSource cancellationTokenSource )
Parameters
- portMapper
- Type: com.onlineobject.objectnet..::..PortMapper
Port mapper protocol; Upnp, Pmp or both
- cancellationTokenSource
- Type: CancellationTokenSource
Cancellation token source for cancelling the discovery process