Skip to content
This repository was archived by the owner on Jun 8, 2024. It is now read-only.
This repository was archived by the owner on Jun 8, 2024. It is now read-only.

Finalizer will not run in .Net Core builds, becareful and remember to manually call them. #94

@jianmingyong

Description

@jianmingyong

Ever since .Net Core changed the behavior of finalizer, it will never release the ports on time. To be safe, users have to call NatDiscoverer.ReleaseSessionMappings(); manually to ensure it is properly released.

Sadly this break the last failover ditch effort some people may expect it to work. Of course there is still a workaround with this using:
AppDomain.CurrentDomain.ProcessExit event. Only use this workaround on .Net Core builds if you want to ensure it release the session mappings if people click the X button.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions