public void UnloadDomain(AppDomain domain) { if (domain != null) { AppDomain.Unload(domain); Interlocked.Decrement(ref this.bundleAppDomains); } }