IFeatureManager.cs 799 B

12345678910111213141516171819202122232425262728
  1. using System.Collections.Generic;
  2. namespace Abp.Application.Features
  3. {
  4. /// <summary>
  5. /// Feature manager.
  6. /// </summary>
  7. public interface IFeatureManager
  8. {
  9. /// <summary>
  10. /// Gets the <see cref="Feature"/> by a specified name.
  11. /// </summary>
  12. /// <param name="name">Unique name of the feature.</param>
  13. Feature Get(string name);
  14. /// <summary>
  15. /// Gets the <see cref="Feature"/> by a specified name or returns null if it can not be found.
  16. /// </summary>
  17. /// <param name="name">The name.</param>
  18. Feature GetOrNull(string name);
  19. /// <summary>
  20. /// Gets all <see cref="Feature"/>s.
  21. /// </summary>
  22. /// <returns></returns>
  23. IReadOnlyList<Feature> GetAll();
  24. }
  25. }