DisabledSecurityDescriptor.cs 907 B

123456789101112131415161718192021222324
  1. using System.Globalization;
  2. using System.Linq;
  3. namespace InABox.Core
  4. {
  5. public abstract class DisabledSecurityDescriptor<TLicense> : BaseSecurityDescriptor<TLicense> where TLicense : LicenseToken
  6. {
  7. public override bool Value => false;
  8. }
  9. public abstract class DisabledSecurityDescriptor<TLicense, TEntity> : DisabledSecurityDescriptor<TLicense>
  10. where TLicense : LicenseToken where TEntity : Entity, new()
  11. {
  12. public override string Category => new Inflector.Inflector(new CultureInfo("en"))
  13. .Pluralize(
  14. typeof(TEntity).EntityName().Split('.').Last().SplitCamelCase()
  15. );
  16. }
  17. public abstract class DisabledSecurityDescriptor<TLicense, TEntity1, TEntity2> : DisabledSecurityDescriptor<TLicense, TEntity1>
  18. where TLicense : LicenseToken where TEntity1 : Entity, new() where TEntity2 : Entity, new()
  19. {
  20. }
  21. }