19 [Conditional(
"_LOGGING")]
22 Message.OutToUnmanagedDebugger(
"CHNL:" + s +
"\n");
27 [Conditional(
"_LOGGING")]
36 [Conditional(
"_DEBUG")]
48 ((IInternalMessage)m).ServerIdentityObject = (ServerIdentity)srvID;
51 internal static RemotingMethodCachedData GetReflectionCachedData(
MethodBase mi)
53 RuntimeMethodInfo runtimeMethodInfo =
null;
54 RuntimeConstructorInfo runtimeConstructorInfo =
null;
55 if ((runtimeMethodInfo = (mi as RuntimeMethodInfo)) !=
null)
57 return runtimeMethodInfo.RemotingCache;
59 if ((runtimeConstructorInfo = (mi as RuntimeConstructorInfo)) !=
null)
61 return runtimeConstructorInfo.RemotingCache;
66 internal static RemotingTypeCachedData GetReflectionCachedData(RuntimeType type)
68 return type.RemotingCache;
71 internal static RemotingCachedData GetReflectionCachedData(
MemberInfo mi)
74 RuntimeType runtimeType =
null;
75 RuntimeFieldInfo runtimeFieldInfo =
null;
76 SerializationFieldInfo serializationFieldInfo =
null;
79 return GetReflectionCachedData(methodBase);
81 if ((runtimeType = (mi as RuntimeType)) !=
null)
83 return GetReflectionCachedData(runtimeType);
85 if ((runtimeFieldInfo = (mi as RuntimeFieldInfo)) !=
null)
87 return runtimeFieldInfo.RemotingCache;
89 if ((serializationFieldInfo = (mi as SerializationFieldInfo)) !=
null)
91 return serializationFieldInfo.RemotingCache;
93 throw new ArgumentException(Environment.GetResourceString(
"Argument_MustBeRuntimeReflectionObject"));
96 internal static RemotingCachedData GetReflectionCachedData(RuntimeParameterInfo reflectionObject)
98 return reflectionObject.RemotingCache;
108 RuntimeParameterInfo runtimeParameterInfo = reflectionObject as RuntimeParameterInfo;
109 if (memberInfo !=
null)
111 return GetReflectionCachedData(memberInfo).GetSoapAttribute();
113 if (runtimeParameterInfo !=
null)
115 return GetReflectionCachedData(runtimeParameterInfo).GetSoapAttribute();
Obtains information about the attributes of a member and provides access to member metadata.
static void SetServerIdentity(MethodCall m, object srvID)
Sets internal identifying information for a remoted server object for each method call from client to...
Implements the T:System.Runtime.Remoting.Messaging.IMethodCallMessage interface to create a request m...
static void RemotingAssert(bool condition, string message)
Instructs an internal debugger to check for a condition and display a message if the condition is fal...
Provides information about, and means to manipulate, the current environment and platform....
Defines utility methods for use by the .NET Framework remoting infrastructure.
Provides information about methods and constructors.
The exception that is thrown when one of the arguments provided to a method is not valid.
static void DebugOutChnl(string s)
Sends a message concerning a remoting channel to an unmanaged debugger.
static SoapAttribute GetCachedSoapAttribute(object reflectionObject)
Gets an appropriate SOAP-related attribute for the specified class member or method parameter.
static void RemotingTrace(params object[] messages)
Sends any number of messages concerning remoting channels to an internal debugger.