TenantFeatureCacheItem.cs 933 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. namespace IwbZero.MultiTenancy
  4. {
  5. /// <summary>
  6. /// Used to store features of a Tenant in the cache.
  7. /// </summary>
  8. [Serializable]
  9. public class TenantFeatureCacheItem
  10. {
  11. /// <summary>
  12. /// The cache store name.
  13. /// </summary>
  14. public const string CacheStoreName = "AbpZeroTenantFeatures";
  15. /// <summary>
  16. /// Edition of the tenant.
  17. /// </summary>
  18. public int? EditionId { get; set; }
  19. /// <summary>
  20. /// Feature values.
  21. /// </summary>
  22. public IDictionary<string, string> FeatureValues { get; private set; }
  23. /// <summary>
  24. /// Initializes a new instance of the <see cref="TenantFeatureCacheItem"/> class.
  25. /// </summary>
  26. public TenantFeatureCacheItem()
  27. {
  28. FeatureValues = new Dictionary<string, string>();
  29. }
  30. }
  31. }