/src/LinFu.AOP.Interfaces/ITypeActivator.cs

http://github.com/philiplaureano/LinFu · C# · 16 lines · 7 code · 0 blank · 9 comment · 0 complexity · 994ae83c24f015a3c6fabd4da4a01258 MD5 · raw file

  1. namespace LinFu.AOP.Interfaces
  2. {
  3. /// <summary>
  4. /// Represents an <see cref="IActivator{TContext}" /> that can instantiate objects from within a particular method.
  5. /// </summary>
  6. public interface ITypeActivator : IActivator<ITypeActivationContext>
  7. {
  8. /// <summary>
  9. /// Determines whether or not a type can be instantiated using the
  10. /// <paramref name="context" />.
  11. /// </summary>
  12. /// <param name="context">The <see cref="ITypeActivationContext" /> instance that describes the type to be created.</param>
  13. /// <returns><c>true</c> if the type can be created; otherwise, it will return <c>false</c>.</returns>
  14. bool CanActivate(ITypeActivationContext context);
  15. }
  16. }