/src/LinFu.Reflection/Interfaces/ILoaderPlugin.cs

http://github.com/philiplaureano/LinFu · C# · 22 lines · 8 code · 1 blank · 13 comment · 0 complexity · ac09c281260126b217f36c9924a3f987 MD5 · raw file

  1. namespace LinFu.Reflection
  2. {
  3. /// <summary>
  4. /// Represents a component that can monitor
  5. /// a target instance as it loads.
  6. /// </summary>
  7. /// <typeparam name="TTarget">The target instance type.</typeparam>
  8. public interface ILoaderPlugin<TTarget>
  9. {
  10. /// <summary>
  11. /// Signals the beginning of a load.
  12. /// </summary>
  13. /// <param name="target">The target being loaded.</param>
  14. void BeginLoad(TTarget target);
  15. /// <summary>
  16. /// Signals the end of a load.
  17. /// </summary>
  18. /// <param name="target">The target being loaded.</param>
  19. void EndLoad(TTarget target);
  20. }
  21. }