Beispiel #1
0
 public static SizeQuotaConfiguration GetConfiguration(DocumentDatabase database)
 {
     return
         ((SizeQuotaConfiguration)
          database.ExtensionsState.GetOrAdd("Raven.Bundles.Quotas.SizeQuotaConfiguration", s =>
     {
         var sizeQuotaConfiguration = new SizeQuotaConfiguration(database);
         return sizeQuotaConfiguration;
     }));
 }
Beispiel #2
0
		public static SizeQuotaConfiguration GetConfiguration(DocumentDatabase database)
		{
			return
				(SizeQuotaConfiguration)
				database.ExtensionsState.GetOrAddAtomically("Raven.Bundles.Quotas.SizeQuotaConfiguration", s =>
				{
					var sizeQuotaConfiguration = new SizeQuotaConfiguration(database);
					return sizeQuotaConfiguration;
				});
		}