Commit Graph
62 Commits
Author SHA1 Message Date
Marek Safar 4b4ddb66b3 [corlib] Improve flow of ExecutionContext (few tests taken from https://github.com/mono/mono/pull/864). Fixes #18121 and similar. 2014-03-06 19:54:06 +01:00
Bart Vries e3c37d1042 LogicalSet/GetData implementation in CallContext 2013-11-25 16:59:59 +01:00
Rodrigo Kumpera b96d05dac3 Kill the MOONLIGHT define in corlib. 2013-02-11 16:03:28 -05:00
Rodrigo Kumpera 83dccf8fe7 Add all missing sequential layout directives to corlib and system. 2011-12-13 11:57:23 -02:00
Sebastien Pouliot 59918464b3 Add a few MOONLIGHT defines to remove the RemotingProxy from ML build
* System.Runtime.Remoting.Activation/ActivationServices.cs:
* System.Runtime.Remoting.Messaging/ConstructionCall.cs
* System.Runtime.Remoting.Proxies/ProxyAttribute.cs
* System.Runtime.Remoting.Proxies/RealProxy.cs
* System.Runtime.Remoting/RemotingServices.cs
	Add a few MOONLIGHT defines to remove the RemotingProxy from
	being used in Moonlight builds. This reduce the number of SSC
	and code size
* moonlight_raw_corlib.dll.sources: Remove System.Runtime.Remoting.
Proxies/RemotingProxy.cs from moonlight build
2011-04-13 10:31:11 -04:00
Robert Jordan f2062c1ef9 In corlib/System.Runtime.Remoting.Proxies:
2010-02-28  Robert Jordan  <[email protected]>

	* RealProxy.cs (PrivateInvoke): BeginInvoke return messages
	do not have out args (by design). The issue has existed for many
	years but it was invisible because mono_delegate_begin_invoke ()
	has swallowed exceptions, which was fixed by Gonzalo in r141856.
	Fixes a couple of disabled remoting tests (#576618).

In System.Runtime.Remoting/Test:
2010-02-28  Robert Jordan  <[email protected]>

	* BaseCalls.cs: Enable tests again. See bug #576618.


svn path=/trunk/mcs/; revision=152616
2010-02-27 23:18:52 +00:00
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
Gonzalo Paniagua Javier 821bd01bd3 2009-09-27 Gonzalo Paniagua Javier <[email protected]>
* RealProxy.cs: for a custom proxy, retrieve the OutArgs before
	allowing EndInvoke to proceed because after that, OutArgs will throw
	because there is no method. Fixes remoting2 and remoting3 tests.


svn path=/trunk/mcs/; revision=142695
2009-09-27 05:20:12 +00:00
Lluis Sanchez a5b3f56d50 2009-05-06 Lluis Sanchez Gual <[email protected]>
* RealProxy.cs: If async dispatch crashes, don't propagate the
	exception. The exception will be raised when calling EndInvoke.


svn path=/trunk/mcs/; revision=133620
2009-05-05 23:20:13 +00:00
Marek Safar 159314e044 Warnings cleanup
svn path=/trunk/mcs/; revision=111730
2008-08-27 18:28:16 +00:00
Marek Safar cc9c53a109 Warnings cleanup
svn path=/trunk/mcs/; revision=111713
2008-08-27 15:40:13 +00:00
Andreas N 2be87c3228 2008-04-02 Andreas Nahr <[email protected]>
* ProxyAttribute.cs: Fix parameter names

svn path=/trunk/mcs/; revision=99657
2008-04-02 17:11:25 +00:00
Sebastien Pouliot daa6a545b4 2008-02-10 Sebastien Pouliot <[email protected]>
* RealProxy.cs: Use 'is' instead of 'as' and a null check. Found 
	using Gendarme new UseIsOperator rule.


svn path=/trunk/mcs/; revision=95399
2008-02-10 19:46:34 +00:00
Dick Porter ed0e0a5242 2007-05-03 Dick Porter <[email protected]>
* ProxyAttribute.cs: 
	* RealProxy.cs: Update to 2.0 profile

2007-05-03  Dick Porter  <[email protected]>

	* ITrackingHandler.cs: 
	* EnterpriseServicesHelper.cs: 
	* TrackingServices.cs: Update to 2.0 profile

2007-05-03  Dick Porter  <[email protected]>

	* IFieldInfo.cs: 
	* ISoapMessage.cs: 
	* InternalRM.cs: 
	* InternalST.cs: 
	* ServerFault.cs: 
	* SoapFault.cs: 
	* SoapMessage.cs: 
	* FormatterAssemblyStyle.cs: 
	* FormatterTypeStyle.cs: 
	* TypeFilterLevel.cs: Update to 2.0 profile

2007-05-03  Dick Porter  <[email protected]>

	* BinaryFormatter.cs: Update to 2.0 profile

2007-05-03  Dick Porter  <[email protected]>

	* Encoding.cs: 
	* UnicodeEncoding.cs: 
	* UTF7Encoding.cs: Update to 2.0 profile



svn path=/trunk/mcs/; revision=76625
2007-05-03 16:21:18 +00:00
Jonathan Chambers a4f8889331 2006-07-15 Jonathan Chambers <[email protected]>
Begin implementing COM Interop.

svn path=/trunk/mcs/; revision=62639
2006-07-15 13:13:55 +00:00
Zoltan Varga fb6577b0d5 2006-06-18 Zoltan Varga <[email protected]>
* RealProxy.cs (ProcessResponse): Use t.GetElementType ().IsInstanceOfType () when the type is a byref.

svn path=/trunk/mcs/; revision=61825
2006-06-18 10:34:15 +00:00
Lluis Sanchez 6567ff9896 2005-06-22 Lluis Sanchez Gual <[email protected]>
* RealProxy.cs: Extract the output arguments from the message's
	Args list (not from OutArgs), since some message objects
	may not support OutArgs (for example, when the target MethodBase is
	not known, there is no way to know which params are out params).
	I've checked that MS.NET behaves in the same way. This fixes
	bug #75277.


svn path=/trunk/mcs/; revision=46360
2005-06-22 11:15:06 +00:00
Lluis Sanchez ae13b7f17e 2005-06-13 Lluis Sanchez Gual <[email protected]>
* RealProxy.cs: Report invalid return type of values using
	InvalidCastException, like MS.NET. Fixes bug #75203.


svn path=/trunk/mcs/; revision=45876
2005-06-13 14:44:51 +00:00
Lluis Sanchez c1267ff098 * RealProxy.cs: Added _targetDomainId and _targetUri fields, which are
used by the new xdomain wrappers. Added GetAppDomainTarget() method,
	which returns the remote object referenced by the proxy.
	* RemotingProxy.cs: Moved _targetUri to RealProxy.

svn path=/trunk/mcs/; revision=35960
2004-11-10 11:49:50 +00:00
Lluis Sanchez 897873b1c9 * RemotingProxy.cs: In Invoke, suport IMessages other than MonoMessage.
svn path=/trunk/mcs/; revision=34445
2004-09-27 20:05:06 +00:00
Lluis Sanchez 25d2bc422a * RemotingProxy.cs: When attaching a CBO identity, assign the proxy to
be used as "this" for method calls.

svn path=/trunk/mcs/; revision=34254
2004-09-22 19:32:49 +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
Patrik Torstensson 44f764f69b 2004-04-23 Patrik Torstensson
* RealProxy.cs: Moved async functionlity here, also take
	care of custom proxies (non RemotingProxy) case for async and
	construction calls.

	* RemotingProxy.cs: allow RealProxy to call construction method and
	remove end async control (moved to RealProxy)

	Fixes remoting2/3 test case (mono/mono/tests) and closes bug #57672.

svn path=/trunk/mcs/; revision=27908
2004-05-22 22:58:16 +00:00
Lluis Sanchez 7cfcb809d0 * RealProxy.cs: IRemotingTypeInfo.TypeName can return null, beware of that.
svn path=/trunk/mcs/; revision=25403
2004-04-13 16:19:42 +00:00
Lluis Sanchez 7ba957d0b1 * RemotingProxy.cs: Changed the rules for casting WKO proxies, to match
MS.NET behavior.

svn path=/trunk/mcs/; revision=24909
2004-04-01 14:40:32 +00:00
Lluis Sanchez d1780caa6b * RealProxy.cs: Added new internal method for getting the proxy type. It
gets the proxy type from the MonoRemoteClass (it can change if the
	  vtable is upgraded).
	  Modified GetTransparentProxy(). Now it takes the name of the type.
	  The name is taken from the IRemotingTypeInfo object.
	* RemotingProxy.cs: The class must implement IRemotingTypeInfo.

svn path=/trunk/mcs/; revision=23731
2004-03-05 03:52:13 +00:00
Lluis Sanchez df79f19994 * RealProxy.cs: Added setter for ObjectIdentity.
svn path=/trunk/mcs/; revision=22247
2004-01-19 13:37:06 +00:00
Lluis Sanchez e40689b7be RealProxy.cs: Signature fix.
svn path=/trunk/mcs/; revision=20480
2003-11-26 15:56:48 +00:00
Lluis Sanchez 1c807cb263 * RealProxy.cs: Added some missing methods.
* RemotingProxy.cs: ActivateRemoteObject() must return a ConstructionResponse
	  instead of a ReturnMessage.

svn path=/trunk/mcs/; revision=20429
2003-11-25 16:40:00 +00:00
Miguel de Icaza 12e37cc78e Signature fixes
svn path=/trunk/mcs/; revision=20245
2003-11-19 19:55:48 +00:00
Lluis Sanchez c2fd61126b RemotingProxy.cs: Do not dispose proxy identity when it is a local
ContextBoundObject proxy.

svn path=/trunk/mcs/; revision=19806
2003-11-11 01:10:06 +00:00
Lluis Sanchez be9dcf6a08 * RealProxy.cs: In PrivateInvoke() do not try to return the out parameters
if the return message is an excption. This fixes bug #49926.

svn path=/trunk/mcs/; revision=19272
2003-10-21 15:26:56 +00:00
Lluis Sanchez 454937b25c * RemotingProxy.cs: Added destructor that unregisters the identity.
Fixes a memory leak.

svn path=/trunk/mcs/; revision=18724
2003-10-07 23:32:52 +00:00
Lluis Sanchez 4eb2ac9cef * RealProxy.cs: Fixed support for [out] parameters in async calls.
svn path=/trunk/mcs/; revision=18707
2003-10-07 14:39:08 +00:00
Lluis Sanchez 98857f6458 * RemotingProxy.cs: Return message check moved to RealProxy.
* RealProxy.cs: Added return message check and propagation of output
	  parameter values.

svn path=/trunk/mcs/; revision=18041
2003-09-11 23:41:51 +00:00
Lluis Sanchez abea4b4055 * RemotingProxy.cs: Use CallType property to check the type of
the message.

svn path=/trunk/mcs/; revision=17579
2003-08-25 11:32:52 +00:00
Vladimir Vukicevic 8a58dece91 * RealProxy.cs, RemotingProxy.cs: move the LogicalCallContext
setup/restoration into RealProxy's PrivateInvoke, so that custom
RealProxy's get a LogicalCallContext.

svn path=/trunk/mcs/; revision=17565
2003-08-24 23:37:12 +00:00
Lluis Sanchez c7cd609e5a * RemotingProxy.cs: On invoke, set the LogicalCallContext of the message.
svn path=/trunk/mcs/; revision=17341
2003-08-14 19:50:47 +00:00
Duncan Mak 4bcbe166d0 * TransportHeaders.cs: Added Serializable attribute.
* ClientChannelSinkStack.cs: Added no-param constructor.

* ContextAttribute.cs: Removed constructor.

* RealProxy.cs (GetProxiedType): Removed 'virtual' keyword.

* BinaryFormatter.cs (WriteBinaryHeader): changed from public to
private.

* Formatter.cs (WriteSByte): Added CLSCompliant attribute.

svn path=/trunk/mcs/; revision=16785
2003-07-28 19:48:38 +00:00
Lluis Sanchez 0ac396f1cd * RemotingProxy.cs: Check the return arguments types. (a wrong type
would make the runtime to crash).

svn path=/trunk/mcs/; revision=16660
2003-07-25 12:17:02 +00:00
Lluis Sanchez b2ef45acd9 * RemotingProxy.cs: Assign to the message the full uri, if available,
not only the object uri.

svn path=/trunk/mcs/; revision=16305
2003-07-16 10:29:33 +00:00
Lluis Sanchez 2a0d9ff0eb * RemotingProxy.cs: Added support for Async and OneWay messages.
svn path=/trunk/mcs/; revision=13480
2003-04-10 16:31:02 +00:00
Lluis Sanchez 2f9c1f3395 * RealProxy.cs: added variables to support proxy bypass when the called CBO is
in the same context as the caller.
	* RemotingProxy.cs: added suport for dynamic sinks. Activation code moved to
	  ActivationServices.

svn path=/trunk/mcs/; revision=12711
2003-03-20 20:30:28 +00:00
Lluis Sanchez 6f0ebcd9a5 * ProxyAttribute.cs: Implemented.
* RealProxy.cs: Added stubs for some missing methods.
	* RemotingProxy.cs: The activation constructor now creates the ConstructionCall
	  message and collects the context properties.
	  Activation of objects now use IActivator instances.

svn path=/trunk/mcs/; revision=12140
2003-03-03 16:42:50 +00:00
Lluis Sanchez b65f8ff197 * RealProxy.cs: Changed constructor to allow only ClientIdentity instances.
* RemotingProxy.cs: Added new constructor for client activated objects.
	  Added method that handles construction messages.

svn path=/trunk/mcs/; revision=11727
2003-02-19 12:39:39 +00:00
Patrik Torstensson d83b90fc3a 2003-02-03 Patrik Torstensson
* RealProxy.cs: changed excption behavior and added serialization helpers,
	  changed so it don't create a new TP for each gettp call.

	* RemotingProxy.cs: added functions to short cut calls to GetHashCode and GetType,
	same behavior as MS.

svn path=/trunk/mcs/; revision=11157
2003-02-03 11:22:13 +00:00
Gonzalo Paniagua Javier 2c425e442f 2003-01-28 Gonzalo Paniagua Javier <[email protected]>
* RealProxy.cs: fixed compilation by adding missing GetObjectData ().

svn path=/trunk/mcs/; revision=10984
2003-01-28 15:23:19 +00:00
Lluis Sanchez b936987419 no message
svn path=/trunk/mcs/; revision=9962
2002-12-29 12:24:45 +00:00
Miguel de Icaza 5e017a3f3f 2002-12-20 Lluis Sanchez Gual <[email protected]>
* RealProxy.cs: Added ObjectIdentity property.
	  Implemented CrateObjRef.
	* RemotingProxy.cs: Added Identity parameter to constructor

2002-12-20  Lluis Sanchez Gual <[email protected]>

	* ServerContextTerminatorSink.cs: Added
	* ServerObjectTerminatorSink.cs: Added
	* StackBuilderSink.cs: Added

2002-12-20  Lluis Sanchez Gual <[email protected]>

	* LeaseSink.cs: Added
2002-12-20 Lluis Sanchez Gual <[email protected]>

	* ObjRef.cs: Implementation now based on methods of RemotingServices.
	* RemotingServices.cs: Remoting information now kept in Identity objects.
	  All methods adapted to work with identities.
	  Renamed ExecuteMessage to InternalExecuteMessage. ExecuteMessage should
	  not make a direct call to the object.
	* Identity.cs: added.

svn path=/trunk/mcs/; revision=9822
2002-12-21 23:00:04 +00:00
Dietmar Maurer f82ceee6bb 2002-09-03 Dietmar Maurer <[email protected]>
* System.Runtime.Remoting.Channels.CORBA/CORBAChannel.cs:
	impl. the channel wrapper.

	* System.Runtime.Remoting.Channels.Simple/SimpleChannel.cs:
	impl. the channel wrapper.

	* System.Runtime.Remoting.Channels.Simple/SimpleServerChannel.cs
	(GetUrlsForUri): use all available channel uris.

svn path=/trunk/mcs/; revision=7259
2002-09-05 07:59:45 +00:00