Commit Graph
40 Commits
Author SHA1 Message Date
Miguel de Icaza 3c39ac4586 Jumbo patch for NET_2_0, mscorlib is now clean
svn path=/trunk/mcs/; revision=145621
2009-11-06 22:23:59 +00:00
Andreas N 509ce46041 2008-07-04 Andreas Nahr <[email protected]>
* ReturnMessage.cs:
	* MethodResponse.cs:
	* MethodCall.cs:
	* IRemotingFormatter.cs:
	* IMethodReturnMessage.cs:
	* IMethodMessage.cs:
	* IMethodCallMessage.cs:
	* ConstructionResponse.cs:
	* ConstructionCall.cs: Fix parameter name
	* Header.cs: Ouch!

svn path=/trunk/mcs/; revision=107224
2008-07-04 08:22:16 +00:00
Robert Jordan 067780d08f 2007-12-04 Robert Jordan <[email protected]>
* MethodCall.cs (ResolveMethod): Handle server objects registered
	with RemotingServices.Marshal (obj, typeof (ISomeInterface)).
	Fixes #324232. Test case: /trunk/gert/standalone/bug82302/.


svn path=/trunk/mcs/; revision=91003
2007-12-09 14:52:58 +00:00
Robert Jordan c9e988e0ef In System.Runtime.Remoting:
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-10-30 01:49:05 +00:00
Robert Jordan afdc20175d In System.Runtime.Remoting:
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
2007-09-08 22:28:07 +00:00
Atsushi Eno 63cf6d7312 2007-09-06 Atsushi Enomoto <[email protected]>
* LogicalCallContext.cs, MethodCall.cs, MethodCallMessageWrapper.cs,
	  IMethodMessage.cs, ReturnMessage.cs, MethodResponse.cs
	  MethodReturnMessageWrapper.cs : couple more of (2.0/1.1) API fixes.


svn path=/trunk/mcs/; revision=85388
2007-09-06 05:16:16 +00:00
Wade Berrier 3fc8429094 2007-07-30 Lluis Sanchez Gual <[email protected]>
* 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
2007-08-01 17:34:50 +00:00
Atsushi Eno 936dfc332b clearing ComVisibleAttribute noises in 2.0 API.
svn path=/trunk/mcs/; revision=81245
2007-07-03 12:28:53 +00:00
Robert Jordan 24c5756f7a 2007-02-05 Robert Jordan <[email protected]>
* MethodCall.cs (ResolveMethod): Actually use the type returned
	by CastTo (). Fixes bug #77191.


svn path=/trunk/mcs/; revision=76839
2007-05-07 15:39:33 +00:00
Robert Jordan bb653a80a8 In System.Runtime.Remoting.Messaging:
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
2007-01-08 23:55:18 +00:00
Lluis Sanchez 9d99fb5ee9 2006-08-04 Lluis Sanchez Gual <[email protected]>
* 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
2006-08-04 11:03:32 +00:00
Lluis Sanchez 97c23622ff 2006-02-06 Lluis Sanchez Gual <[email protected]>
* LogicalCallContext.cs, MethodCall.cs, ReturnMessage.cs,
	  MethodResponse.cs: Create a new LogicalCallContext for
	  every message. Fixes #77364 again.


svn path=/trunk/mcs/; revision=56586
2006-02-06 14:54:14 +00:00
Lluis Sanchez 968c155b82 2006-01-31 Lluis Sanchez Gual <[email protected]>
* 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
2006-01-31 19:45:07 +00:00
Lluis Sanchez 377d173ba5 2005-05-09 Lluis Sanchez Gual <[email protected]>
* MethodCall.cs: Fix warning.


svn path=/trunk/mcs/; revision=44263
2005-05-09 10:54:01 +00:00
Marek Safar b20cf0cc02 removed unused variables
svn path=/trunk/mcs/; revision=36415
2004-11-23 06:40:55 +00:00
Ben Maurer 658b904703 2004-09-11 Ben Maurer <[email protected]>
* 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
2004-09-12 01:24:43 +00:00
Ben Maurer 01c3c9e673 2004-09-11 Ben Maurer <[email protected]>
* 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
2004-09-11 20:10:46 +00:00
Ben Maurer d0a11ec681 2004-09-05 Ben Maurer <[email protected]>
* 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
2004-09-05 16:22:46 +00:00
Lluis Sanchez 9ced887f71 * MethodCall.cs: Use RemotingServices.GetMethodBaseFromName to get the
MethodBase from the method name. This fixes bug #61774.

svn path=/trunk/mcs/; revision=31363
2004-07-22 08:14:36 +00:00
Duncan Mak 13d1764537 Add license and copyright to all source files in corlib
svn path=/trunk/mcs/; revision=29249
2004-06-11 02:09:36 +00:00
Lluis Sanchez dcc7c83799 * MethodCall.cs: Do not try to resolve the method in the serialization
constructor, since the type array may not be yet completely deserialized.
	  This fixes bug #52426.

svn path=/trunk/mcs/; revision=21416
2003-12-22 12:44:39 +00:00
Dick Porter f204bdc417 Do string compares with the Invariant culture.
Use the char forms of IndexOf and LastIndexOf, so that the comparison is
done with the Invariant culture.

svn path=/trunk/mcs/; revision=20593
2003-11-28 18:22:08 +00:00
Lluis Sanchez f61f2aea52 * MethodCall.cs, MethodResponse.cs, ReturnMessage.cs: Implemented
HasVarArgs property.

svn path=/trunk/mcs/; revision=20473
2003-11-26 15:19:10 +00:00
Lluis Sanchez b369a2476d * ArgInfo.cs, ClientContextTerminatorSink.cs, ErrorMessage.cs, MethodCall.cs,
MethodResponse.cs, MonoMethodMessage.cs, ServerContextTerminatorSink.cs,
	  StackBuilderSink.cs: Fixed class visibility.
	* CADMessages.cs: Added null reference check in SaveLogicalCallContext.
	* ISerializationRootObject.cs: Added.

svn path=/trunk/mcs/; revision=20198
2003-11-18 21:43:23 +00:00
Lluis Sanchez 9bb10f200d * CADMessages.cs: Added methods for setting and getting the logical call
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
2003-11-16 22:23:42 +00:00
Lluis Sanchez 078afb0d64 * MethodCall.cs: In the constructor that takes a CADMethodCallMessage
object, make sure strings are not reused across domains.

svn path=/trunk/mcs/; revision=19337
2003-10-23 11:33:50 +00:00
Lluis Sanchez 309488f3ab * MethodCall.cs: Changed exception text to match MS.NET (more or less).
* AsyncResult.cs: Added new fields to store async calls results.

svn path=/trunk/mcs/; revision=17444
2003-08-20 14:22:17 +00:00
Lluis Sanchez 389001660c * MethodCall.cs: Throw the right exception if the target object is not
found when resolving the target method.

svn path=/trunk/mcs/; revision=17373
2003-08-17 19:04:25 +00:00
Lluis Sanchez 6ec4609ca7 * ArgInfo.cs: Use Type.IsByRef to check if a parameter is a ref or
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
2003-07-25 12:10:09 +00:00
Lluis Sanchez bf5c571123 * MethodCall.cs: Fixed copy constructor, when the message to copy does not
implement IMethodMessage.

svn path=/trunk/mcs/; revision=16480
2003-07-21 12:18:18 +00:00
Lluis Sanchez 2c730aa422 * MethodCall.cs: ResolveMethod now uses the type of the target object (identified
by the uri) instead of the type specified by TypeName (only if both types have
	  the same name).

svn path=/trunk/mcs/; revision=14560
2003-05-13 20:55:43 +00:00
Lluis Sanchez ca2024d4b8 * ConstructionCall.cs: Added internal constructor. Added setter for activation attributes.
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
2003-03-03 16:42:17 +00:00
Gonzalo Paniagua Javier 81f0febea2 2003-02-19 Gonzalo Paniagua Javier <[email protected]>
* MethodCall.cs:
	(MethodBase): resolve the method if it's not already done.

svn path=/trunk/mcs/; revision=11737
2003-02-19 17:01:54 +00:00
Lluis Sanchez 5c132ca21d * IInternalMessage.cs: Added. Provides some useful methods for method messages.
* 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
2003-02-19 12:38:28 +00:00
Lluis Sanchez a07c9658be * ServerContextTerminatorSink.cs: Modified to work with new types of identities.
* 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
2003-02-04 12:54:31 +00:00
Patrik Torstensson 14994a5e46 Ooops, missed one file.
svn path=/trunk/mcs/; revision=11166
2003-02-03 11:41:16 +00:00
Lluis Sanchez 44d2993bc3 * ReturnMessage.cs: Implemented property Properties
* RemotingSurrogateSelector.cs: Implemented serialization support for ObjRef.
* MonoMethodMessage.cs: Implemented Properties and MethodSignature properties.
* MethodReturnMessageWrapper.cs: Implemented.
* MethodCallMessageWrapper.cs: Implemented.
* MethodCall.cs: Implemented.
* Header.cs: Small corrections to make it work.
* MethodDictionary.cs: Added.
* MethodCallDictionary.cs: Added.
* MethodReturnDictionary.cs: Added.
* ArgInfo.cs: Added.

svn path=/trunk/mcs/; revision=10923
2003-01-26 17:58:01 +00:00
Duncan Mak 04ea508bdc 2002-08-03 Duncan Mak <[email protected]>
* 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
2002-08-02 18:30:58 +00:00
Duncan Mak 91bec20178 2002-08-02 Duncan Mak <[email protected]>
* MethodCall.cs:
	* MethodCallMessageWrapper.cs:
	* MethodReturnMessageWrapper.cs: Various visibility fixes.

	* RemotingSurrogateSelector.cs: Added, replaced RemoteSurrogateSelector.

	* ActivatedClientTypeEntry.cs:
	* ActivatedServiceTypeEntry.cs:
	* WellKnownClientTypeEntry.cs:
	* WellKnownServiceTypeEntry.cs: Various visibility fixes.

svn path=/trunk/mcs/; revision=6323
2002-08-01 18:06:30 +00:00
Duncan Mak 1cb4839fba 2002-07-31 Duncan Mak <[email protected]>
* unix.args: Added new classes in
	System.Runtime.Remoting.Contexts.

	* InternalMessageWrapper.cs:
	* MessageSurrogateFilter.cs:
	* MethodCall.cs:
	* MethodCallMessageWrapper.cs:
	* MethodResponse.cs:
	* MethodReturnMessageWrapper.cs:
	* RemoteSurrogateSelector.cs: Added to CVS.

	* MonoMethodMessage.cs:
	* ReturnMessage.cs: Add set in the Uri property.

svn path=/trunk/mcs/; revision=6276
2002-07-31 10:40:33 +00:00