+2003-10-23 Lluis Sanchez Gual <lluis@ximian.com>
+
+ * CrossAppDomainChannel.cs: Before the domain switch, save and reset
+ thread's datastore. Restore it on return. This fixes bug #49774.
+
2003-09-11 Lluis Sanchez Gual <lluis@ximian.com>
* ChannelServices.cs: Call context management moved to RemotingServices.
//
-// System.Runtime.Remoting.Channels.CrossDomainChannel.cs
+// System.Runtime.Remoting.Channels.CrossAppDomainChannel.cs
//
-// Author: Patrik Torstensson (totte_mono@yahoo.com)
+// Author: Patrik Torstensson (totte_mono@yahoo.com)\r
+// Lluis Sanchez Gual (lluis@ximian.com)
//
// 2003 (C) Copyright, Ximian, Inc.
//
arrRequest = reqMsgStream.GetBuffer();\r
}\r
\r
+ object threadStatus = Thread.ResetDataStoreStatus ();\r
Context currentContext = Thread.CurrentContext;
- AppDomain currentDomain = AppDomain.InternalSetDomainByID ( _domainID );
+ AppDomain currentDomain = AppDomain.InternalSetDomainByID ( _domainID );\r
try
{
{
AppDomain.InternalSetDomain (currentDomain);
AppDomain.InternalSetContext (currentContext);
+ Thread.RestoreDataStoreStatus (threadStatus);\r
}\r
\r
if (null != arrResponse) {\r