public static QueueAccessModeHolder GetQueueAccessModeHolder(QueueAccessMode accessMode)
 {
     if (holders.ContainsKey(accessMode))
     {
         return holders[accessMode];
     }
     lock (holders)
     {
         QueueAccessModeHolder holder = new QueueAccessModeHolder(accessMode);
         holders[accessMode] = holder;
         return holder;
     }
 }
Exemplo n.º 2
0
 public static QueueAccessModeHolder GetQueueAccessModeHolder(QueueAccessMode accessMode)
 {
     if (holders.ContainsKey(accessMode))
     {
         return(holders[accessMode]);
     }
     lock (holders)
     {
         QueueAccessModeHolder holder = new QueueAccessModeHolder(accessMode);
         holders[accessMode] = holder;
         return(holder);
     }
 }