IObjectPool.cs 528 B

123456789101112131415161718192021222324
  1. using System;
  2. namespace IFramework
  3. {
  4. /// <summary>
  5. /// 对象池接口
  6. /// </summary>
  7. public interface IObjectPool:IDisposable {
  8. /// <summary>
  9. /// 数量
  10. /// </summary>
  11. int count { get; }
  12. /// <summary>
  13. /// 类型
  14. /// </summary>
  15. Type type { get; }
  16. /// <summary>
  17. /// 回收
  18. /// </summary>
  19. /// <param name="obj"></param>
  20. /// <param name="args"></param>
  21. void Set(object obj,IEventArgs args);
  22. }
  23. }