Imported Upstream version 6.4.0.137

Former-commit-id: 943baa9f16a098c33e129777827f3a9d20da00d6
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-07-26 19:53:28 +00:00
parent e9207cf623
commit ef583813eb
2712 changed files with 74169 additions and 40587 deletions

View File

@@ -0,0 +1,22 @@
using System.Runtime.CompilerServices;
namespace System.Runtime.Remoting.Activation
{
internal static class ActivationServices
{
#region Keep this code, it is used by the runtime
// Called from the runtime.
public static object CreateProxyForType (Type type)
{
throw new PlatformNotSupportedException ();
}
#endregion
// Allocates an uninitialized instance. It never creates proxies.
[MethodImplAttribute(MethodImplOptions.InternalCall)]
public static extern object AllocateUninitializedClassInstance (Type type);
[MethodImplAttribute(MethodImplOptions.InternalCall)]
public extern static void EnableProxyActivation (Type type, bool enable);
}
}

View File

@@ -0,0 +1,43 @@
namespace System.Runtime.Remoting.Messaging
{
#region Keep this code, it is used by nunit
public interface ILogicalThreadAffinative
{
}
#endregion
class LogicalCallContext
{
LogicalCallContext ()
{
throw new PlatformNotSupportedException ();
}
}
public sealed class CallContext
{
CallContext ()
{
throw new PlatformNotSupportedException ();
}
#region Keep this code, it is used by the runtime
internal static object SetCurrentCallContext (LogicalCallContext ctx)
{
throw new PlatformNotSupportedException ();
}
#endregion
#region Keep this code, it is used by nunit
public static void SetData (String name, Object data)
{
throw new PlatformNotSupportedException ();
}
public static Object GetData (String name)
{
throw new PlatformNotSupportedException ();
}
#endregion
}
}

View File

@@ -0,0 +1,28 @@
using System.Runtime.Remoting.Messaging;
using System.Runtime.InteropServices;
namespace System.Runtime.Remoting.Contexts
{
[StructLayout (LayoutKind.Sequential)]
public sealed class Context
{
#region Keep this code, it is used by the runtime
#pragma warning disable 169, 414
int domain_id;
int context_id;
UIntPtr static_data; /* GC-tracked */
UIntPtr data;
[ContextStatic]
static object[] local_slots;
#pragma warning restore 169, 414
internal bool NeedsContextSink => throw new PlatformNotSupportedException ();
#endregion
Context ()
{
throw new PlatformNotSupportedException ();
}
}
}

View File

@@ -0,0 +1,8 @@
namespace System.Runtime.Remoting
{
public interface IRemotingTypeInfo
{
string TypeName { get; set; }
bool CanCastTo (Type fromType, object o);
}
}

View File

@@ -0,0 +1,33 @@
using System.Runtime.InteropServices;
namespace System
{
[StructLayout (LayoutKind.Sequential)]
public abstract class MarshalByRefObject
{
#region Keep this code, it is used by the runtime
#pragma warning disable 169, 649
private object _identity;
#pragma warning restore 169, 649
#endregion
protected MarshalByRefObject ()
{
}
public object GetLifetimeService ()
{
throw new PlatformNotSupportedException ();
}
public virtual object InitializeLifetimeService ()
{
throw new PlatformNotSupportedException ();
}
protected MarshalByRefObject MemberwiseClone (bool cloneIdentity)
{
throw new PlatformNotSupportedException ();
}
}
}

View File

@@ -0,0 +1,26 @@
namespace System.Runtime.Remoting
{
public sealed class ObjectHandle : MarshalByRefObject
{
#region Keep this code, it is used by the runtime
#pragma warning disable 169, 649
private object _wrapped;
#pragma warning restore 169, 649
#endregion
public ObjectHandle (object o)
{
throw new PlatformNotSupportedException ();
}
public override object InitializeLifetimeService ()
{
throw new PlatformNotSupportedException ();
}
public object Unwrap ()
{
throw new PlatformNotSupportedException ();
}
}
}

View File

@@ -0,0 +1,65 @@
using System;
using System.Runtime.Remoting.Messaging;
using System.Runtime.Remoting.Contexts;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace System.Runtime.Remoting.Proxies
{
[StructLayout (LayoutKind.Sequential)]
internal class TransparentProxy
{
#region Keep this code, it is used by the runtime
#pragma warning disable 169, 649
public RealProxy _rp;
Mono.RuntimeRemoteClassHandle _class;
bool _custom_type_info;
internal object LoadRemoteFieldNew (IntPtr classPtr, IntPtr fieldPtr)
{
throw new PlatformNotSupportedException ();
}
internal void StoreRemoteField (IntPtr classPtr, IntPtr fieldPtr, object arg)
{
throw new PlatformNotSupportedException ();
}
#pragma warning restore 169, 649
#endregion
}
[StructLayout (LayoutKind.Sequential)]
public abstract class RealProxy
{
#region Keep this code, it is used by the runtime
#pragma warning disable 169, 649
Type class_to_proxy;
internal Context _targetContext;
internal MarshalByRefObject _server;
int _targetDomainId = -1;
internal string _targetUri;
internal Object _objectIdentity;
Object _objTP;
object _stubData;
internal object GetAppDomainTarget ()
{
throw new PlatformNotSupportedException ();
}
internal static object PrivateInvoke (RealProxy rp, IMessage msg, out Exception exc,
out object [] out_args)
{
throw new PlatformNotSupportedException ();
}
#pragma warning disable 169, 649
#endregion
RealProxy ()
{
throw new PlatformNotSupportedException ();
}
}
}

View File

@@ -0,0 +1,29 @@
namespace System.Runtime.Remoting
{
public static class RemotingServices
{
#region Keep this code, it is used by the runtime
internal static object GetServerObject (string uri)
{
throw new PlatformNotSupportedException ();
}
internal static byte[] SerializeCallData (object obj)
{
throw new PlatformNotSupportedException ();
}
internal static object DeserializeCallData (byte[] array)
{
throw new PlatformNotSupportedException ();
}
internal static byte[] SerializeExceptionData (Exception ex)
{
throw new PlatformNotSupportedException ();
}
#endregion
}
}