IReadFileAsync.cs 498 B

1234567891011121314151617181920212223
  1. using XGame.Framework.Asyncs;
  2. namespace XGame.Framework.FileSystem
  3. {
  4. /// <summary>
  5. /// 读取文件异步对象
  6. /// </summary>
  7. public interface IReadFileAsync : IAsync
  8. {
  9. /// <summary>
  10. /// 成功
  11. /// </summary>
  12. bool Success { get; }
  13. /// <summary>
  14. /// 文件路径
  15. /// </summary>
  16. string FilePath { get; }
  17. /// <summary>
  18. /// 文件内容
  19. /// </summary>
  20. byte[] Data { get; }
  21. }
  22. }