예제 #1
0
파일: Hub.cs 프로젝트: nice1378/x2clr
 public Hub Create(string name)
 {
     rwlock.EnterWriteLock();
     try
     {
         Hub hub;
         if (!hubs.TryGetValue(name, out hub))
         {
             hub = new Hub(name);
             hubs.Add(name, hub);
         }
         return hub;
     }
     finally
     {
         rwlock.ExitWriteLock();
     }
 }
예제 #2
0
파일: Hub.cs 프로젝트: jaykang920/x2clr
 static Hub()
 {
     HeartbeatEvent = new HeartbeatEvent { _Transform = false };
     // Initialize the singleton instance.
     Instance = new Hub();
 }
예제 #3
0
파일: Hub.cs 프로젝트: gitter-badger/x2clr
 static Hub()
 {
     Instance = new Hub();
 }