Commit Graph
82 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 861811b3fb Move some MOBILE bits under DISABLE_REMOTING as a remoting enabled runtime will need them for
basic functionality.
2013-03-07 17:46:04 -05:00
Rodrigo Kumpera e2d2459f30 RemotingServices::IsTransparentProxy doesn't work on mobile. 2013-03-01 11:32:12 -05:00
Rodrigo Kumpera b96d05dac3 Kill the MOONLIGHT define in corlib. 2013-02-11 16:03:28 -05: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
Marek Safar eda489c823 Few 4.0 profile corcompare changes 2011-03-30 18:25:03 +01:00
Rodrigo Kumpera 1cb9ec78d5 2010-02-05 Rodrigo Kumpera <[email protected]>
* RemotingServices.cs (InternalExecuteMessage): Properly
	handle generic methods. We can't call MakeGenericMethod on
	a non GMD method.

svn path=/trunk/mcs/; revision=150925
2010-02-05 12:57:50 +00:00
Marek Safar e36f88f012 app_id thread safety
svn path=/trunk/mcs/; revision=146421
2009-11-18 14:17:25 +00:00
Marek Safar ada78e5307 2009-11-18 Marek Safar <[email protected]>
* RemotingServices.cs: Delay heavyweight GUID initialization.


svn path=/trunk/mcs/; revision=146420
2009-11-18 13:29:24 +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
Sebastien Pouliot 4d177fd9eb 2009-09-18 Sebastien Pouliot <[email protected]>
* RemotingServices.cs: Avoid depending on COM stuff for NET_2_1


svn path=/trunk/mcs/; revision=142192
2009-09-18 15:34:41 +00:00
Robert Jordan 50e650bdaa In Mono.Interop:
2009-07-11  Robert Jordan  <[email protected]>

	* ComInteropProxy.cs: Implement CreateProxy. Hide public/internal
	ctors forcing CreateProxy's usage. Hide CacheProxy since the
	runtime is able to lookup it anyways.
	Fixes bug #520437.

In System:
2009-07-19  Robert Jordan  <[email protected]>

	* __ComObject.cs: Factor out Initialize method and expose it to
	ComInteropProxy. Fixes bug #520437.

In System.Runtime.Remoting:
2009-07-11  Robert Jordan  <[email protected]>

	* RemotingServices.cs: Track ComInteropProxy's changes.


svn path=/trunk/mcs/; revision=138182
2009-07-18 23:15:10 +00:00
Mark Probst 0316477932 2009-04-18 Mark Probst <[email protected]>
* RemotingServices.cs (GetDomainProxy): Make a copy of the array
        created in the other app domain so as not to pollute our own.

svn path=/trunk/mcs/; revision=132066
2009-04-17 23:30:57 +00:00
Andreas N 490f6ce129 2008-07-03 Andreas Nahr <[email protected]>
* ServerException.cs:
	* RemotingTimeoutException.cs:
	* RemotingException.cs:
	* RemotingServices.cs:
	* RemotingConfiguration.cs:
	* ObjRef.cs: "Fix" parameter names

svn path=/trunk/mcs/; revision=107176
2008-07-03 19:20:37 +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
Mark Probst 733fed177c 2007-08-15 Mark Probst <[email protected]>
* RemotingServices.cs: Make sure InternalExecute doesn't get
	called with a null method, because that makes it crash.  Throw a
	NullReferenceException instead.  Doesn't fix bug #82302, but
	prevents the crash.

svn path=/trunk/mcs/; revision=84154
2007-08-15 15:29:52 +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
Atsushi Eno 936dfc332b clearing ComVisibleAttribute noises in 2.0 API.
svn path=/trunk/mcs/; revision=81245
2007-07-03 12:28:53 +00:00
Lluis Sanchez 4905c6820b 2006-12-18 Lluis Sanchez Gual <[email protected]>
* RemotingServices.cs: FieldSetter and FieldGetter methods need
	  to be handled in a special way, since they are the only private
	  methods which can be called from a subclass.
	  In UpdateOutArgObject, removed support for StringBuilder objects,
	  now supporting only arrays, like MS.NET.


svn path=/trunk/mcs/; revision=70641
2007-01-08 12:45:03 +00:00
Lluis Sanchez be38075df7 2006-11-22 Lluis Sanchez Gual <[email protected]>
* RemotingServices.cs: Avoid generating urls with negative numbers.
	  When building the url for the RemoteActivationService service,
	  avoid duplicate path separator.


svn path=/trunk/mcs/; revision=68313
2006-11-22 01:02:04 +00:00
Gert Driesen 5243a420ec * RemotingServices.cs: Explicitly set FormatterAssemblyStyle to Full
in 2.0 profile, as the default has changed from Full to Simple.
Fixes bug #79732.

svn path=/trunk/mcs/; revision=67142
2006-10-30 16:29:10 +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
Robert Jordan 40ed976145 2006-04-27 Robert Jordan <[email protected]>
* RemotingServices.cs (IsObjectOutOfAppDomain, IsObjectOutOfContext):
	add parameter validation. Fixes bug #78164.


svn path=/trunk/mcs/; revision=60010
2006-04-27 20:43:06 +00:00
Sebastien Pouliot 900f06daee 2006-04-07 Sebastien Pouliot <[email protected]>
* RemotingServices.cs: Assert SerializationFormatter permissions if 
	the runtime wants to do cross-appdomain serialization (this will need
	to be better reviewed/tested later but it fix some current issues).


svn path=/trunk/mcs/; revision=59215
2006-04-07 19:13:09 +00:00
Robert Jordan a3ff55a369 2005-12-07 Robert Jordan <[email protected]>
* RemotingServices.cs: Accept the application name beeing a part of
	  the object URI. Fixes bug #76809.


svn path=/trunk/mcs/; revision=54010
2005-12-06 23:31:24 +00:00
Lluis Sanchez 3042000361 2004-08-18 Lluis Sanchez Gual <[email protected]>
* RemotingServices.cs: Notify marshals, unmarshals and disconnections
	to TrackingServices. Fixes bug #75814.


svn path=/trunk/mcs/; revision=48487
2005-08-18 09:55:08 +00:00
Zoltan Varga 9c73996e69 2005-06-06 Zoltan Varga <[email protected]>
* ObjRef.cs RemotingServices.cs: Add some missing 2.0 attributes.

svn path=/trunk/mcs/; revision=45492
2005-06-06 14:17:19 +00:00
Lluis Sanchez 334ae1a545 2005-05-09 Lluis Sanchez Gual <[email protected]>
* RemotingServices.cs: Fix warning.


svn path=/trunk/mcs/; revision=44264
2005-05-09 10:54:24 +00:00
Lluis Sanchez 35b4dcf8d1 * RemotingServices.cs: Added several serialization methods needed by
the cross app domain wrappers.
	In GetOrCreateClientIdentity(), set the domain of the proxy if it
	references an object in another domain.

svn path=/trunk/mcs/; revision=35964
2004-11-10 11:52:55 +00:00
Lluis Sanchez c3e7b4fa53 * RemotingServices.cs: Allways pass the uri when calling
GetClientChannelSinkChain, even if it has channel data.
	  This fixes bug 66768.

svn path=/trunk/mcs/; revision=34469
2004-09-28 08:18:29 +00:00
Lluis Sanchez 34a336c0ce * RemotingServices.cs: Fixed wrong patch for InternalExecuteMessage.
The MethodBase in the message may not be the same type of the object
	  (the method can be called using an interface).

svn path=/trunk/mcs/; revision=34280
2004-09-23 13:24:14 +00:00
Lluis Sanchez d1c4ebe91a * RemotingServices.cs: In InternalExecute, use MethodBase instead
of MonoMethod, so it can be also used for running constructors.
	* ServerIdentity.cs: Added methods for getting and setting the client
	  proxy in ClientActivatedIdentity. This is needed for CBOs, since
	  messages need to be dispatched using the proxy as "this", not the
	  real object.

svn path=/trunk/mcs/; revision=34251
2004-09-22 19:30:55 +00:00
Ben Maurer 8d6c76318b 2004-09-11 Ben Maurer <[email protected]>
* RemotingServices.cs: use MethodBase rather than looking
	for the method ourselves. It has higher perf in x-ad calls.

svn path=/trunk/mcs/; revision=33764
2004-09-12 01:20:28 +00:00
Ben Maurer 094186a061 2004-09-05 Ben Maurer <[email protected]>
* RemotingServices.cs (IsMethodOverloaded): use the internal
	method GetMethodsByName. It does much less work than GetMembers.

svn path=/trunk/mcs/; revision=33374
2004-09-05 17:48:27 +00:00
Ben Maurer a049865bb3 2004-09-05 Ben Maurer <[email protected]>
* RemotingServices.cs (IsOneWay): use IsDefined rather than

svn path=/trunk/mcs/; revision=33371
2004-09-05 16:26:09 +00:00
Lluis Sanchez a54b2d7817 * RemotingServices.cs: Changed GetMethodBaseFromMethodMessage so its code
can be reused internally. Also fixed bug when gettting a method from an
	  interface.

svn path=/trunk/mcs/; revision=31362
2004-07-22 08:14:10 +00:00
Lluis Sanchez 56907edd29 * ServerIdentity.cs: When disposing an identity, detach the identity from
the object, so it can be safely marshalled again.
	* RemotingServices.cs: Fixed IsObjectOutOfContext and
	  IsObjectOutOfAppDomain. In SetObjectUriForMarshal, take into account
	  contextful objects.

svn path=/trunk/mcs/; revision=30670
2004-07-02 14:03:47 +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
Gert Driesen 85abe35367 * RemotingServices.cs: Added missing Conditional attribute and
MonoTODO attribute on LogRemotingStage

svn path=/trunk/mcs/; revision=28644
2004-06-01 17:58:08 +00:00
Lluis Sanchez 304ffc273f * RemotingServices.cs: In GetMethodBaseFromMethodMessage, look for
constructors if no method is found.

svn path=/trunk/mcs/; revision=27074
2004-05-11 09:54:26 +00:00
Lluis Sanchez e9b7d5bc33 * RemotingServices.cs: When create a ReturnMessage, provide an array with
all parameters, including input parameters.

svn path=/trunk/mcs/; revision=26185
2004-04-28 18:37:47 +00:00
Lluis Sanchez ae5d8520ec * RemotingServices.cs: Marshal(): If the object is a proxy, return the ObjRef stored in the identity object. This fixes bug #55100. Fixed some exception messages.
svn path=/trunk/mcs/; revision=23827
2004-03-09 12:11:27 +00:00
Lluis Sanchez 0285b1b066 * RemotingServices.cs: Client identities are registered using the full url,
not the object uri, so they must be unregistered using the same key.

svn path=/trunk/mcs/; revision=23168
2004-02-17 15:15:42 +00:00
Lluis Sanchez b1743778bc * RemotingServices.cs: When marshalling a custom proxy, allow the creation
of a new identity. This fixes bug #52921.
	* ServerIdentity.cs: Allow the creation of server identities that
	represent a custom proxy instead of a real object.

svn path=/trunk/mcs/; revision=22245
2004-01-19 13:36:14 +00:00
Lluis Sanchez d3a284a6d2 * IObjectHandle.cs, ObjectHandle.cs: Added missing attributes.
* RemotingConfiguration.cs: GetRegisteredActivatedClientTypes made public.
	  Declared CustomErrorsEnabled() method.
	* RemotingServices.cs: Implemented GetSessionIdForMethodMessage().
	  IsAsyncMessage must be internal.
	* InternalRemotingServices.cs: Added.

svn path=/trunk/mcs/; revision=20080
2003-11-16 22:11:02 +00:00
Lluis Sanchez 04541cca20 * RemotingServices.cs: Add ".rem" suffix to generated uri names.
svn path=/trunk/mcs/; revision=19941
2003-11-13 16:49:21 +00:00
Lluis Sanchez 7e2751e079 * ActivatedClientTypeEntry.cs, ActivatedServiceTypeEntry.cs,
IRemotingTypeInfo.cs, RemotingServices.cs, WellKnownServiceTypeEntry.cs:
	  Removed some TODOs.

svn path=/trunk/mcs/; revision=19802
2003-11-11 00:46:27 +00:00
Zoltan Varga eddb44a71b 2003-11-01 Zoltan Varga <[email protected]>
* RemotingServices.cs (GetDomainProxy): Use the new InvokeInDomain
	function instead of calling SetDomain.

svn path=/trunk/mcs/; revision=19524
2003-11-01 18:15:18 +00:00