Skip to content

Add new API for collectible AssemblyLoadContext #19765

@xoofx

Description

@xoofx

This is related to the undergoing work on coreclr: Collectible assemblies and AssemblyLoadContext

I would like to add the following API to the System.Runtime.Loader.AssemblyLoadContext:

// Allow to create a Collectible ALC. The default constructor will call this method with false
protected AssemblyLoadContext(bool isCollectible);

// Returns true if this ALC is collectible
public bool IsCollectible {get; }

// Allows to explicitly unload an ALC. Once this method is called,
// any call to LoadFromXXX method will throw an exception
public void Unload();

Metadata

Metadata

Assignees

Labels

api-approvedAPI was approved in API review, it can be implementedarea-System.Runtimehelp wanted[up-for-grabs] Good issue for external contributors

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions