コード例 #1
0
 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;
 }
コード例 #2
0
 private static bool GetHost(string id, out MonoApplicationHost host)
 {
     _lock.EnterReadLock();
     try
     {
         return _hosts.TryGetValue(id, out host);
     }
     finally
     {
         _lock.ExitReadLock();
     }
 }