public void Dispose () { if (domainHandle != null) { domainHandle.Dispose (); domainHandle = null; } }
public override AppDomain ProvideTemplatingAppDomain (string content) { if (domainHandle == null) { domainHandle = TextTemplatingService.GetTemplatingDomain (); } return domainHandle.Domain; }