2007-10-30 Robert Jordan <[email protected]>
* RemotingServices.cs: (InternalExecuteMessage):
Resolve interface methods using the new icall GetVirtualMethod ().
Remove the now obsolete GetMethodBaseFromName + generic params
overloads.
In System.Runtime.Remoting.Messaging:
2007-10-30 Robert Jordan <[email protected]>
* MethodCall.cs (ResolveMethod): Lookup the interface
using RemotingServices.GetVirtualMethod (). Eliminates
the costly GetMethodBaseFromName () call.
svn path=/trunk/mcs/; revision=88434
2007-08-30 Robert Jordan <[email protected]>
* RemotingServices.cs (InternalExecuteMessage): Resolve interface
methods correctly. Fixes#81554. Ditto for generic methods.
* RemotingServices.cs (GetMethodBaseFromName): Reuse already computed
FieldSetter|GetterMethods.
* RemotingServices.cs (GetMethodBaseFromName): New overload that
takes generic arguments into account.
In System.Runtime.Remoting.Messaging:
2007-09-07 Robert Jordan <[email protected]>
* MethodCall (ResolveMethod): Handle generic methods in the
code that was introduced as a fix for #82240.
Fixes#81554.
svn path=/trunk/mcs/; revision=85525
* MethodCall.cs (ResolveMethod): If the method is implemented
in an interface, look for the method implementation. Fix for bxc
#82240
svn path=/trunk/mcs/; revision=83216
2006-12-25 Robert Jordan <[email protected]>
* MethodCall.cs: Add support for generic methods.
* MethodCall.cs (GetTypeNameFromAssemblyQualifiedName):
Add support for generic types.
* ReturnMessage.cs: Fix bug #80371.
In System.Runtime.Serialization.Formatters.Binary:
2006-12-25 Robert Jordan <[email protected]>
* binary_serialization_format.htm: Update the NET_2_0 format.
* BinaryCommon.cs: MethodFlags is actually an int32. Add NET_2_0 flags.
* MessageFormatter.cs: Add support for generic method arguments.
* ObjectWriter.cs, ObjectReader.cs: Map between System.MonoType and
MS.NET's System.RuntimeType.
svn path=/trunk/mcs/; revision=70683
* MethodCall.cs, CADMessages.cs: Added missing unmarshalling case
for IntPtr. When getting the method from the CAD message,
check that the same declaring type is loaded in the target domain
from the same assembly. If it is not, get the correct type and
method for the domain.
svn path=/trunk/mcs/; revision=63340
* LogicalCallContext.cs, MethodCall.cs, ReturnMessage.cs,
MethodResponse.cs: Create a new LogicalCallContext for
every message. Fixes#77364 again.
svn path=/trunk/mcs/; revision=56586
* LogicalCallContext.cs: Added shared empty call context.
* MethodCall.cs: Added better error checking and reporting in
the code that resolves methods.
* ReturnMessage.cs, MethodResponse.cs, MethodCall.cs: Never return null in
LogicalCallContext. If it's null, return an empty context. Based
on a patch by Dominic Ullmann that fixes bug #77364.
svn path=/trunk/mcs/; revision=56355
* CADMessages.cs: get rid of method / type name, it is not needed
* MethodCall.cs: lazily init method / type name.
* ReturnMessage.cs: lazily init method / type name, sig.
svn path=/trunk/mcs/; revision=33765
* CADMessages.cs, MethodCall.cs: When doing an x-appdomain
call, store the method in a RuntimeMethodHandle. This allows
us to avoid the expensive lookup operations that must be done
to resolve the method. This makes xsp go from 250 r/s to 450 r/s
for me.
svn path=/trunk/mcs/; revision=33755
* MethodCall.cs, CADMessages.cs: String.Copy (x) is the same
thing as new string (x.ToCharArray ()), however it involves
half the memory allocation
svn path=/trunk/mcs/; revision=33369
context.
* ConstructionCall.cs: Fixed signature of some methods.
* ConstructionResponse.cs: Fixed signature of constructor and added missing
property.
* LogicalCallContext.cs: Removed TODO.
* MethodCall.cs, MethodResponse.cs: Added support for LogicalCallContext in
consturctor.
* MethodReturnMessageWrapper.cs: Removed some unneded methods.
svn path=/trunk/mcs/; revision=20084
out parameter.
* MethodCall.cs: Improved checking if the requested client type for the target
object can be casted to the server type. Now not only checks type name,
but also the type hierarchy and implemented interfaces. Also implemented
method ToString().
* MethodResponse.cs: Imlemented ToString().
* ReturnMessage.cs: In the exception constructor, allow the request to be null.
Implemented ToString().
* StackBuilderSink.cs: Check type of parameters before calling the target method.
(a wrong type would make the runtime to crash).
svn path=/trunk/mcs/; revision=16659
Some other minor corrections.
* EnvoyTerminatorSink.cs: Message now redirected to current context's client sink chain.
* MethodCall.cs: Added method for copying messages.
svn path=/trunk/mcs/; revision=12139
* ServerContextTerminatorSink.cs: Added support for construction messages.
* MethodCall.cs: Implemented serialization support. Added support for IInternalMessage.
* MethodDictionary.cs: Added support for IInternalMessage.
* MethodResponse.cs: Added serialization support. Added support for IInternalMessage.
* MonoMethodMessage.cs: Added support for IInternalMessage.
* ReturnMessage.cs: Added support for IInternalMessage.
* ClientContextTerminatorSink.cs: Added.
* ConstructionCall.cs: Added.
* ConstructionCallDictionary.cs: Added.
* ConstructionResponse.cs: Added.
* EnvoyTerminatorSink.cs: Added.
svn path=/trunk/mcs/; revision=11726
* ReturnMessage.cs: Removed internal dependence to MonoMethodMessage. It is not needed now.
* MonoMethodMessage.cs: Now only has method call keys in the dictionary.
* MethodReturnDictionary.cs, MethodCallDictionary.cs: Made public the list of
method keys. This list is used in MessageFormatter.
* MethodDictionary.cs: Corrected some minor bugs.
* MethodCall.cs: minor correction on constructor.
svn path=/trunk/mcs/; revision=11199
* BinaryClientFormatterSink.cs:
* IClientChannelSink.cs: Fixed signature for AsyncProcessResponse.
* MethodCall.cs:
* MethodResponse.cs: More visibility fixes. Hopefully this is the
last of it.
svn path=/trunk/mcs/; revision=6361