chuongmep / RevitAddInManager

Revit AddinManager update .NET assemblies without restart Revit for developer.
MIT License
275 stars 50 forks source link

Feat : R25 Support Unload Assembly #54

Closed chuongmep closed 1 month ago

chuongmep commented 2 months ago

Purpose

47

New Process : System.Runtime.Loader.AssemblyLoadContext • With .NET Core, there is only a single AppDomain • In .NET Core 3, Contexts were introduced to replace AppDomains • They are not a security boundary • Load contexts are named, there is no "Current" as it was for AppDomains • Almost zero-cost in accessing code in a different context Main use cases: • Ability to unload addons/plugins from the AppDomain • Controlling the resolution (probing) of addons assemblies and native dlls • Isolating and using different versions of the same addons

image

Preview How Proces Changed : POWERPNT_QNmMMVhEVN

Declarations

Check these if you believe they are true

Reviewers

(FILL ME IN) Reviewer 1 (If possible, assign the Reviewer for the PR)

(FILL ME IN, optional) Any additional notes to reviewers or testers.

FYIs

(FILL ME IN, Optional) Names of anyone else you wish to be notified of