Gets the lifetime in seconds. The Lifetime parameter tells the router how long the portmapping should be active.
Since most programs don't know this in advance, it is often set to 0, which means 'unlimited' or 'permanent'.
Namespace:
com.onlineobject.objectnet
Assembly:
ObjectNetAPI (in ObjectNetAPI.dll)
public int Lifetime { get; set; }
All portmappings are release automatically as part of the shutdown process when
NatUtility.
ReleaseOnShutdown is true.
Permanent portmappings will not be released if the process ends anormally.
Since most programs don't know the lifetime in advance, Open.NAT renew all the portmappings (except the permanents) before they expires. So, developers have to close explicitly those portmappings
they don't want to remain open for the session.