private static MonoApplicationHost CreateHost(string root, string vroot) { MonoApplicationHost host = (MonoApplicationHost)ApplicationHost.CreateApplicationHost(typeof(MonoApplicationHost), vroot, root); host.Root = root; host.VRoot = vroot; return host; }
private static bool GetHost(string id, out MonoApplicationHost host) { _lock.EnterReadLock(); try { return _hosts.TryGetValue(id, out host); } finally { _lock.ExitReadLock(); } }