Commit Graph
119 Commits
Author SHA1 Message Date
Robert Jordan 9eb4a2cd77 2010-03-05 Robert Jordan <[email protected]>
* ObjRef.cs (GetRealObject): Revert previous patch as it doesn't
	cope well with CAD remoting, which doesn't flag well-known types.


svn path=/trunk/mcs/; revision=153105
2010-03-05 13:09:51 +00:00
Robert Jordan d3edf1cd53 2010-02-26 Robert Jordan <[email protected]>
* ObjRef.cs (GetRealObject): Refine to server type only when
	necessary. Fixes #504886.


svn path=/trunk/mcs/; revision=152576
2010-02-26 20:01:33 +00: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 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
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
Miguel de Icaza b1acc47db5 2008-10-04 Robert Jordan <[email protected]>
* ServerIdentity.cs (DisposeServerObject):
	Notify TrackingServices about server's disconnection.

svn path=/trunk/mcs/; revision=121934
2008-12-20 19:18:55 +00:00
Atsushi Eno 8dbd02cbbf 2008-08-04 Atsushi Enomoto <[email protected]>
* RemotingConfiguration.cs : use ordinal comparison in config paths.
	  Fixed bug #384264.


svn path=/trunk/mcs/; revision=109537
2008-08-04 05:45:42 +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
Sebastien Pouliot c1145bf21e 2008-01-07 Sebastien Pouliot <[email protected]>
* Identity.cs: Fix Disposed setter to use value (not true). Found 
	using Gendarme.


svn path=/trunk/mcs/; revision=92418
2008-01-07 21:42:12 +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
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
Jonathan Chambers 2c72d3253a 2007-05-02 Jonathan Chambers <[email protected]>
* RemotingConfiguration.cs: Added Configure overload for 2.0
	with MonoTODO for security.

svn path=/trunk/mcs/; revision=76588
2007-05-02 19:09:09 +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
Lluis Sanchez e5f3efef02 2006-08-23 Lluis Sanchez Gual <[email protected]>
* ObjRef.cs: Throw a TypeLoadException exception if the referenced
	  type can't be found. That's better than a nullref.


svn path=/trunk/mcs/; revision=64279
2006-08-23 21:19:57 +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
Svetlana Zholkovsky a3ab70385a Fix RemotingConfiguration.cs (ConfigHandler.OnEndElement) and ServerIdentity.cs (DisposeServerObject)
svn path=/trunk/mcs/; revision=52623
2005-11-06 11:48:12 +00:00
Lluis Sanchez 43c33111e6 2005-10-18 Lluis Sanchez Gual <[email protected]>
* RemotingConfiguration.cs: The value for customErrors tag must be
	case-insensitive. Fixes bug #76466 (patch by Robert Jordan).
	

svn path=/trunk/mcs/; revision=51861
2005-10-18 10:21:58 +00:00
Lluis Sanchez 27ac1ee91f 2005-10-17 Lluis Sanchez Gual <[email protected]>
* RemotingConfiguration.cs: Rethrow catched exceptions
	in ReadConfigFile (patch by Robert Jordan). Fixes bug #76434.
	Properly set the application name.

2005-08-18  Lluis Sanchez Gual  <[email protected]>


svn path=/trunk/mcs/; revision=51799
2005-10-17 11:49:48 +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
Ben Maurer a68aa2eda4 remove executable bit from changelogs
svn path=/trunk/mcs/; revision=46563
2005-06-27 15:53:16 +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
Ben Maurer bfebe73def 2005-05-26 Ben Maurer <[email protected]>
* InternalRemotingServices.cs: Move hashtable init to
	cctor. Removes double checked locking and locking on typeof.


svn path=/trunk/mcs/; revision=45075
2005-05-26 20:17:21 +00:00
Lluis Sanchez 69ae8140ba 2005-05-17 Lluis Sanchez Gual <[email protected]>
* ObjRef.cs: Use IsInstanceOfType instead of IsAssignableFrom
	since GetType() may not return the correct type if the object is
	a remoting proxy.


svn path=/trunk/mcs/; revision=44637
2005-05-17 17:53:03 +00:00
Atsushi Eno 0e388c1237 2005-05-12 Atsushi Enomoto <[email protected]>
* corlib.dll.sources: replaced MiniParser.cs with SmallXmlParser.cs.

	* SmallXmlParser.cs,
	  SecurityParser.cs : Use new SmallXmlParser.cs instead of MiniParser.

	* RemotingConfiguration.cs : MiniParser->SmallXmlParser changes.

	* PermissionSetAttribute.cs : MiniParser->SmallXmlParser changes.


svn path=/trunk/mcs/; revision=44422
2005-05-12 03:40:00 +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 3266ee6e9a * ServerIdentity.cs: Only set the target identity if it has not already
been set.

svn path=/trunk/mcs/; revision=34447
2004-09-27 20:06:12 +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 c7229c7551 * ObjRef.cs: Fixed type check in in ObjRef constructor. The requested class
must be the object class or a base class. This fixes bug #61249.

svn path=/trunk/mcs/; revision=31368
2004-07-22 09:24:36 +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
Lluis Sanchez b41f3fa30e * RemotingConfiguration.cs: Avoid adding "id" and "type" as custom
properties of providers. This fixes bug #60934.

svn path=/trunk/mcs/; revision=30610
2004-07-01 11:02:33 +00:00
Gert Driesen fba8ec682a * RemotingTimeoutException.cs: added missing serialization ctor
* ServerException.cs: added missing serialization ctor

svn path=/trunk/mcs/; revision=29633
2004-06-15 18:39:20 +00:00
Lluis Sanchez 0036436ef6 * RemotingConfiguration.cs: Read application name from configuraation file.
svn path=/trunk/mcs/; revision=29555
2004-06-14 21:41:02 +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