* AppDomain.cs: In DefaultDomain, wrap the returned domain with
a proxy if the current domain is not the root domain.
svn path=/trunk/mcs/; revision=88215
[ThreadStatic]
private static IPrincipal _principal;
+
+ static AppDomain default_domain;
private AppDomain ()
{
internal static AppDomain DefaultDomain {
get {
- return getRootDomain ();
+ if (default_domain == null) {
+ AppDomain rd = getRootDomain ();
+ if (rd == CurrentDomain)
+ default_domain = rd;
+ else
+ default_domain = (AppDomain) RemotingServices.GetDomainProxy (rd);
+ }
+ return default_domain;
}
}
+2007-10-25 Lluis Sanchez Gual <lluis@novell.com>
+
+ * AppDomain.cs: In DefaultDomain, wrap the returned domain with
+ a proxy if the current domain is not the root domain.
+
2007-10-24 Atsushi Enomoto <atsushi@ximian.com>
* Type.cs : implemented ReflectionOnlyGetType().