Beispiel #1
0
 public naming.Response GetNaming()         //for personal session naming (need agent only)
 {
     if (naming == null)
     {
         naming = Naming.Get(new naming.Request(getSession()));
     }
     return(naming);
 }
Beispiel #2
0
 static naming.Response globalNaming = null;         //Naming.Get(new naming.Request());
 public static naming.Response GetNaming()
 {
     if (globalNaming == null)
     {
         lock (lockKey) {
             while (globalNaming == null)
             {
                 try {
                     globalNaming = Naming.Get(new naming.Request());
                     Thread.Sleep(100);
                 } catch (Exception) { }
             }
         }
     }
     return(globalNaming);
 }