Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Contextual reflection #36845

Merged
merged 2 commits into from
Apr 14, 2019
Merged

Contextual reflection #36845

merged 2 commits into from
Apr 14, 2019

Conversation

sdmaclea
Copy link
Contributor

@sdmaclea sdmaclea commented Apr 13, 2019

Add the AssemblyLoadContext contextual reflection Façade.

Fixes #36236 API Review

I'll add tests in a separate PR.

Includes squash/rebase of #36816 to get new coreclr bits...

@sdmaclea sdmaclea added this to the 3.0 milestone Apr 13, 2019
@sdmaclea sdmaclea self-assigned this Apr 13, 2019
@sdmaclea sdmaclea added area-System.Runtime blocked Issue/PR is blocked on something - see comments labels Apr 13, 2019
@sdmaclea sdmaclea force-pushed the ContextualReflection branch from 985b2fa to 59c4714 Compare April 13, 2019 18:21
@GrabYourPitchforks
Copy link
Member

The failing unit tests should be fixed in master now. Rebase and you should see CI go green.

@sdmaclea sdmaclea force-pushed the ContextualReflection branch from 59c4714 to 18e7828 Compare April 13, 2019 23:09
@sdmaclea sdmaclea removed the blocked Issue/PR is blocked on something - see comments label Apr 13, 2019
@davidfowl
Copy link
Member

Is this what we ended up calling the Current property?

@sdmaclea
Copy link
Contributor Author

@davidfowl This was the name chosen in the API review. Yes.

@davidfowl
Copy link
Member

Bizzare, I won't even ask. Is it only an async local? Or does this set the state for all loads?

@sdmaclea sdmaclea merged commit 3e2be47 into dotnet:master Apr 14, 2019
@sdmaclea
Copy link
Contributor Author

@davidfowl It is an AsyncLocal. It should follow AsyncLocal semantics which means it should be inherited when starting threads and tasks, but independent after.

@sdmaclea sdmaclea deleted the ContextualReflection branch April 14, 2019 05:25
@davidfowl
Copy link
Member

Hmm, I'll try this out to see if it works for the hot reload scenario I'm working on. I'm not sure it will but we'll see.

picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
* Add ContextualReflection facade

* Update ApiCompatBaseline.uapaot


Commit migrated from dotnet/corefx@3e2be47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API proposal AssemblyLoadContext.ActiveForContextSensitiveReflection
3 participants