natemcmaster / DotNetCorePlugins

.NET Core library for dynamically loading code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use WeakReference to check if unload is successful

Sardelka9515 opened this issue · comments

As pointed out in readme, the unload is performed asynchronously and won't always be successful, maybe we can use a WeakReference to guarantee the unload is successful before the loader is disposed, otherwise throw an exception.
There's also an example implementation in the dotnet samples repository if you're interested.

this would be very useful

This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please comment if you believe this should remain open, otherwise it will be closed in 14 days. Thank you for your contributions to this project.

Closing due to inactivity.
If you are looking at this issue in the future and think it should be reopened, please make a commented here and mention natemcmaster so he sees the notification.