AssemblyLoadContext.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System.Reflection;
  2. namespace System.Runtime.Loader
  3. {
  4. public abstract class AssemblyLoadContext
  5. {
  6. protected AssemblyLoadContext() { }
  7. protected AssemblyLoadContext(bool isCollectible) { }
  8. public bool IsCollectible { get { throw null; } }
  9. public void Unload() { throw null; }
  10. public static System.Runtime.Loader.AssemblyLoadContext Default { get { throw null; } }
  11. public static System.Reflection.AssemblyName GetAssemblyName(string assemblyPath) { throw null; }
  12. public static System.Runtime.Loader.AssemblyLoadContext GetLoadContext(System.Reflection.Assembly assembly) { throw null; }
  13. protected abstract System.Reflection.Assembly Load(System.Reflection.AssemblyName assemblyName);
  14. public System.Reflection.Assembly LoadFromAssemblyName(System.Reflection.AssemblyName assemblyName) { throw null; }
  15. public System.Reflection.Assembly LoadFromAssemblyPath(string assemblyPath) { throw null; }
  16. public System.Reflection.Assembly LoadFromNativeImagePath(string nativeImagePath, string assemblyPath) { throw null; }
  17. public System.Reflection.Assembly LoadFromStream(System.IO.Stream assembly) { throw null; }
  18. public System.Reflection.Assembly LoadFromStream(System.IO.Stream assembly, System.IO.Stream assemblySymbols) { throw null; }
  19. protected System.IntPtr LoadUnmanagedDllFromPath(string unmanagedDllPath) { throw null; }
  20. protected virtual System.IntPtr LoadUnmanagedDll(string unmanagedDllName) { throw null; }
  21. public void SetProfileOptimizationRoot(string directoryPath) { }
  22. public void StartProfileOptimization(string profile) { }
  23. public event Func<AssemblyLoadContext, System.Reflection.AssemblyName, System.Reflection.Assembly> Resolving;
  24. public event Action<AssemblyLoadContext> Unloading;
  25. internal static void OnProcessExit ()
  26. {
  27. }
  28. public static Assembly[] GetLoadedAssemblies() => throw new NotImplementedException();
  29. public static event AssemblyLoadEventHandler AssemblyLoad;
  30. public static event ResolveEventHandler TypeResolve;
  31. public static event ResolveEventHandler ResourceResolve;
  32. public static event ResolveEventHandler AssemblyResolve;
  33. }
  34. }