/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
- namespace LinFu.AOP.Interfaces
- {
- /// <summary>
- /// Represents an <see cref="IActivator{TContext}" /> that can instantiate objects from within a particular method.
- /// </summary>
- public interface ITypeActivator : IActivator<ITypeActivationContext>
- {
- /// <summary>
- /// Determines whether or not a type can be instantiated using the
- /// <paramref name="context" />.
- /// </summary>
- /// <param name="context">The <see cref="ITypeActivationContext" /> instance that describes the type to be created.</param>
- /// <returns><c>true</c> if the type can be created; otherwise, it will return <c>false</c>.</returns>
- bool CanActivate(ITypeActivationContext context);
- }
- }