Xamarin Public Jenkins (auto-signing) ef583813eb Imported Upstream version 6.4.0.137
Former-commit-id: 943baa9f16a098c33e129777827f3a9d20da00d6
2019-07-26 19:53:28 +00:00

66 lines
1.8 KiB
C#

using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Threading;
namespace System.Runtime.Loader
{
partial class AssemblyLoadContext
{
static IntPtr InitializeAssemblyLoadContext (IntPtr assemblyLoadContext, bool representsTPALoadContext, bool isCollectible)
{
return IntPtr.Zero;
}
static void PrepareForAssemblyLoadContextRelease (IntPtr nativeAssemblyLoadContext, IntPtr assemblyLoadContextStrong)
{
}
static IntPtr InternalLoadUnmanagedDllFromPath (string unmanagedDllPath)
{
throw new NotImplementedException ();
}
[System.Security.DynamicSecurityMethod] // Methods containing StackCrawlMark local var has to be marked DynamicSecurityMethod
Assembly InternalLoadFromPath (string assemblyPath, string nativeImagePath)
{
StackCrawlMark stackMark = StackCrawlMark.LookForMyCaller;
assemblyPath = assemblyPath.Replace ('\\', Path.DirectorySeparatorChar);
// TODO: Handle nativeImagePath
return InternalLoadFile (assemblyPath, ref stackMark);
}
internal Assembly InternalLoad (byte[] arrAssembly, byte[] arrSymbols)
{
throw new NotImplementedException ();
}
public static Assembly[] GetLoadedAssemblies ()
{
throw new NotImplementedException ();
}
public static AssemblyLoadContext GetLoadContext (Assembly assembly)
{
throw new NotImplementedException ();
}
public void SetProfileOptimizationRoot (string directoryPath)
{
}
public void StartProfileOptimization (string profile)
{
}
[MethodImplAttribute (MethodImplOptions.InternalCall)]
extern static Assembly InternalLoadFile (string assemblyFile, ref StackCrawlMark stackMark);
internal static Assembly DoAssemblyResolve (string name)
{
return AssemblyResolve (null, new ResolveEventArgs (name));
}
}
}