Commit Graph
96 Commits
Author SHA1 Message Date
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
Atsushi Eno da15bb9730 2007-11-21 Atsushi Enomoto <[email protected]>
* RemotingConfiguration.cs : added CustomErrorMode (stub).

	* CallContext.cs : added missing 2.0 stuff.


svn path=/trunk/mcs/; revision=90062
2007-11-21 06:41:46 +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
Atsushi Eno 854b977d68 a set of cosmetic part of 2.0 remoting API fixes.
svn path=/trunk/mcs/; revision=84134
2007-08-15 05:47:35 +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
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 cb736bda41 2006-12-18 Lluis Sanchez Gual <[email protected]>
* StackBuilderSink.cs: Avoid unneeded cast that was causing some
	  cast exceptions.


svn path=/trunk/mcs/; revision=69702
2006-12-19 01:16:19 +00:00
Lluis Sanchez 383897a465 * ReturnMessage.cs: When creating an exception message, copy the call
context from the call message.

svn path=/trunk/mcs/; revision=68829
2006-12-01 13:34:00 +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
Zoltan Varga 763cd73b08 2006-05-31 Zoltan Varga <[email protected]>
* AsyncResult.cs: Add an 'object_data' field which has GC tracking.

svn path=/trunk/mcs/; revision=61343
2006-05-31 17:12:59 +00:00
Zoltan Varga 0063519fb5 2006-05-31 Zoltan Varga <[email protected]>
* AsyncResult.cs: Revert the last change.

svn path=/trunk/mcs/; revision=61342
2006-05-31 17:05:13 +00:00
Zoltan Varga eb424173df 2006-05-31 Zoltan Varga <[email protected]>
* AsyncResult.cs: Make 'data' field an object to allow GC tracking.

svn path=/trunk/mcs/; revision=61340
2006-05-31 17:02:03 +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 9d72dddf5d 2005-06-22 Lluis Sanchez Gual <[email protected]>
* MethodReturnMessageWrapper.cs: ArgCount now returns the count
	from the internal arg array, since it may change.
	* MonoMethodMessage.cs: Added NeedsOutProcessing helper method.


svn path=/trunk/mcs/; revision=46359
2005-06-22 10:24:10 +00:00
Lluis Sanchez 577cfcfedf 2005-05-31 Lluis Sanchez Gual <[email protected]>
* ReturnMessage.cs: Added some null checks.
	* MethodReturnMessageWrapper.cs: Added some null checks. Fixed
	incorrect cast in the constructor.


svn path=/trunk/mcs/; revision=45268
2005-05-31 20:04:21 +00:00
Sebastien Pouliot 05598a0e85 2005-05-20 Sebastien Pouliot <[email protected]>
* AsyncResult.cs: Added new fields (required for stack propagation) to
	match runtime structure.


svn path=/trunk/mcs/; revision=44819
2005-05-20 14:11:19 +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
Lluis Sanchez f670a68db2 * CallContext.cs: In CreateLogicalCallContext, added parameter which
specifies if an empty LogicalCallContext needs to be created if there are
	no context values.

svn path=/trunk/mcs/; revision=35963
2004-11-10 11:52:21 +00:00
Lluis Sanchez 7470dcd7d5 * MethodCallMessageWrapper.cs: The wrapper has to modify the wrapped
message. MS does it.
	* ReturnMessage.cs: Use TypeName instead of _typeName since now name is
	  lazely constructed.

svn path=/trunk/mcs/; revision=34446
2004-09-27 20:05:44 +00:00
Lluis Sanchez 687f6921c7 * ConstructionCall.cs: Added a Proxy property (which is the proxy that
will reference the object being created).
	* StackBuilderSink.cs: Take into account the forceInternalExecute
	  parameter.

svn path=/trunk/mcs/; revision=34255
2004-09-22 19:33:18 +00:00
Ben Maurer e61cad2588 2004-09-11 Ben Maurer <[email protected]>
* CallContext.cs: Use [ThreadStatic], it is much faster than the
	Thread.[Get/Set]Data functions

svn path=/trunk/mcs/; revision=33766
2004-09-12 01:43:02 +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
Sebastien Pouliot cfcb5ae03f 2004-06-18 Sebastien Pouliot <[email protected]>
* ReturnMessage.cs: Added IMessage interface to class definition.

svn path=/trunk/mcs/; revision=29913
2004-06-18 19:12:03 +00:00
Gert Driesen 1618604541 * ReturnMessage.cs: remove serializable attribute to match MS.NET
svn path=/trunk/mcs/; revision=29805
2004-06-17 19:01:55 +00:00
Lluis Sanchez dc510f2bc5 * MethodResponse.cs: Only get the MethodBase from type and method name when
requested.

svn path=/trunk/mcs/; revision=27102
2004-05-11 13:36:05 +00:00
Lluis Sanchez acd8316fc2 * MethodResponse.cs: In the serialization constructor, initialize MethodBase
using the method name and type name.

svn path=/trunk/mcs/; revision=27075
2004-05-11 09:55:54 +00:00
Lluis Sanchez 1fdc2d497d * MethodResponse.cs, ReturnMessage.cs: More null checks.
svn path=/trunk/mcs/; revision=26581
2004-05-03 11:42:06 +00:00
Lluis Sanchez 9f1366ce76 * MethodResponse.cs, ReturnMessage.cs: Added null checks.
svn path=/trunk/mcs/; revision=26404
2004-04-30 09:35:47 +00:00
Raja R Harinath 9d302f3280 (MethodResponse.GetOutArg): Make reference to _args null-safe.
svn path=/trunk/mcs/; revision=26289
2004-04-29 10:28:56 +00:00
Raja R Harinath 68a21db35d (MethodResponse.OutArgCount): Make reference
to _args null-safe.

svn path=/trunk/mcs/; revision=26287
2004-04-29 10:12:47 +00:00
Lluis Sanchez 7a1bf072da * CADMessages.cs: Revert last change. It was ok.
* MethodResponse.cs, ReturnMessage.cs: Handle output parameters in a
	  different way. The message is constructed from an array that has all
	  parameters, including input parameters (which will be set to null).
	  The Args property returns all arguments. OutArgs returns only the
	  output arguments, which are taken from the provided args list.

svn path=/trunk/mcs/; revision=26186
2004-04-28 18:39:26 +00:00
Lluis Sanchez 0e6220d1ac * CADMessages.cs: Marshal the correct return args for the return message.
svn path=/trunk/mcs/; revision=26008
2004-04-26 18:44:10 +00:00
Gonzalo Paniagua Javier 210e98a3f4 2004-02-18 Gonzalo Paniagua Javier <[email protected]>
* AsyncResult.cs:
	(AsyncWaitHandle): create the handle if not done yet.

svn path=/trunk/mcs/; revision=23215
2004-02-18 15:38:27 +00:00
Lluis Sanchez 6d2905a6e6 * AsyncResult.cs: Added async_callback field and fixed the callback call.
I thought that async_delegate was the callback, but it is not, it is the
	delegate upon which the async call was invoked. This fixes bug #53020.
	* StackBuilderSink.cs: If the target object is a proxy, make the call
	using the Invoke method of the real proxy.

svn path=/trunk/mcs/; revision=22246
2004-01-19 13:36:39 +00:00
Lluis Sanchez ba98751da5 * ConstructionResponse.cs: Added constructor for exception response.
svn path=/trunk/mcs/; revision=21452
2003-12-23 15:41:18 +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
Lluis Sanchez 0126c17de5 * AsyncResult.cs: Call delegate on async call completion.
* CADMessages.cs: Removed TODO.

svn path=/trunk/mcs/; revision=20972
2003-12-10 16:36:20 +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 56fa430659 * AsyncResult.cs, CallContext.cs: Added private constructor.
* ReturnMessage.cs: Added parameter array length check.

svn path=/trunk/mcs/; revision=20430
2003-11-25 16:47:29 +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 6eeaabbb46 StackBuilderSink.cs: Implemented AsyncProcessMessage().
svn path=/trunk/mcs/; revision=20132
2003-11-17 20:28:32 +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