Example #1
0
 public CollectionStatistics GetCollectionStatistics(string role)
 {
     lock (SyncRoot)
     {
         CollectionStatistics cs;
         if (!collectionStatistics.TryGetValue(role, out cs))
         {
             cs = new CollectionStatistics(role);
             collectionStatistics[role] = cs;
         }
         return(cs);
     }
 }
Example #2
0
		public CollectionStatistics GetCollectionStatistics(string role)
		{
			lock (SyncRoot)
			{
				CollectionStatistics cs;
				if (!collectionStatistics.TryGetValue(role, out cs))
				{
					cs = new CollectionStatistics(role);
					collectionStatistics[role] = cs;
				}
				return cs;
			}
		}