IEmbeddedResourceManager.cs 977 B

123456789101112131415161718192021222324252627
  1. using JetBrains.Annotations;
  2. using System.Collections.Generic;
  3. namespace Abp.Resources.Embedded
  4. {
  5. /// <summary>
  6. /// Provides infrastructure to use any type of resources (files) embedded into assemblies.
  7. /// </summary>
  8. public interface IEmbeddedResourceManager
  9. {
  10. /// <summary>
  11. /// Used to get an embedded resource file.
  12. /// Can return null if resource is not found!
  13. /// </summary>
  14. /// <param name="fullResourcePath">Full path of the resource</param>
  15. /// <returns>The resource</returns>
  16. [CanBeNull]
  17. EmbeddedResourceItem GetResource([NotNull] string fullResourcePath);
  18. /// <summary>
  19. /// Used to get the list of embedded resource file.
  20. /// </summary>
  21. /// <param name="fullResourcePath">Full path of the resource</param>
  22. /// <returns>The list of resource</returns>
  23. IEnumerable<EmbeddedResourceItem> GetResources(string fullResourcePath);
  24. }
  25. }