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

Commit

Permalink
Contextual reflection (#36845)
Browse files Browse the repository at this point in the history
* Add ContextualReflection facade

* Update ApiCompatBaseline.uapaot
  • Loading branch information
sdmaclea authored Apr 14, 2019
1 parent e7fd166 commit 3e2be47
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/System.Runtime.Loader/ref/System.Runtime.Loader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,13 @@ public event System.Action<System.Runtime.Loader.AssemblyLoadContext> Unloading
public void SetProfileOptimizationRoot(string directoryPath) { }
public void StartProfileOptimization(string profile) { }
public void Unload() { }
public static AssemblyLoadContext CurrentContextualReflectionContext { get { throw null; } }
public ContextualReflectionScope EnterContextualReflection() { throw null; }
public static ContextualReflectionScope EnterContextualReflection(System.Reflection.Assembly activating) { throw null; }

public struct ContextualReflectionScope : IDisposable
{
public void Dispose() { }
}
}
}
8 changes: 6 additions & 2 deletions src/System.Runtime.Loader/src/ApiCompatBaseline.uapaot.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Compat issues with assembly System.Runtime.Loader:
CannotMakeTypeAbstract : Type 'System.Runtime.Loader.AssemblyLoadContext' is abstract in the implementation but is not abstract in the contract.
TypesMustExist : Type 'System.Reflection.Metadata.AssemblyExtensions' does not exist in the implementation but it does exist in the contract.
MembersMustExist : Member 'System.Runtime.Loader.AssemblyLoadContext..ctor(System.Boolean)' does not exist in the implementation but it does exist in the contract.
MembersMustExist : Member 'System.Runtime.Loader.AssemblyLoadContext..ctor(System.String, System.Boolean)' does not exist in the implementation but it does exist in the contract.
MembersMustExist : Member 'System.Runtime.Loader.AssemblyLoadContext.add_Resolving(System.Func<System.Runtime.Loader.AssemblyLoadContext, System.Reflection.AssemblyName, System.Reflection.Assembly>)' does not exist in the implementation but it does exist in the contract.
Expand All @@ -27,5 +26,10 @@ MembersMustExist : Member 'System.Runtime.Loader.AssemblyLoadContext.remove_Unlo
MembersMustExist : Member 'System.Runtime.Loader.AssemblyLoadContext.SetProfileOptimizationRoot(System.String)' does not exist in the implementation but it does exist in the contract.
MembersMustExist : Member 'System.Runtime.Loader.AssemblyLoadContext.StartProfileOptimization(System.String)' does not exist in the implementation but it does exist in the contract.
MembersMustExist : Member 'System.Runtime.Loader.AssemblyLoadContext.Unload()' does not exist in the implementation but it does exist in the contract.
MembersMustExist : Member 'System.Runtime.Loader.AssemblyLoadContext.CurrentContextualReflectionContext.get()' does not exist in the implementation but it does exist in the contract.
MembersMustExist : Member 'System.Runtime.Loader.AssemblyLoadContext.EnterContextualReflection()' does not exist in the implementation but it does exist in the contract.
MembersMustExist : Member 'System.Runtime.Loader.AssemblyLoadContext.EnterContextualReflection(System.Reflection.Assembly)' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.Reflection.Metadata.AssemblyExtensions' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.Runtime.Loader.AssemblyDependencyResolver' does not exist in the implementation but it does exist in the contract.
Total Issues: 29
TypesMustExist : Type 'System.Runtime.Loader.AssemblyLoadContext.ContextualReflectionScope' does not exist in the implementation but it does exist in the contract.
Total Issues: 33

0 comments on commit 3e2be47

Please sign in to comment.