Exemple #1
0
 public void Dispose()
 {
     _siteProxyInstance = null;
     if (Domain != null)
     {
         AppDomain.Unload(Domain);
         Domain = null;
     }
 }
Exemple #2
0
 public SiteProxy GetSiteProxy()
 {
     if (_siteProxyInstance == null)
     {
         Type proxyType = typeof(SiteProxy);
         _siteProxyInstance = (SiteProxy)Domain.CreateInstanceFrom(proxyType.Assembly.Location, proxyType.FullName).Unwrap();
     }
     return(_siteProxyInstance);
 }