/src/LinFu.AOP.Interfaces/IActivator.cs
http://github.com/philiplaureano/LinFu · C# · 19 lines · 8 code · 0 blank · 11 comment · 0 complexity · 40ef77f946b82b2d60885e480c45c17a MD5 · raw file
- namespace LinFu.AOP.Interfaces
- {
- /// <summary>
- /// Represents a class that can instantiate object instances.
- /// </summary>
- /// <typeparam name="TContext">
- /// The type that describes the context of the object instantiation.
- /// </typeparam>
- public interface IActivator<TContext>
- where TContext : IActivationContext
- {
- /// <summary>
- /// Creates an object instance.
- /// </summary>
- /// <param name="context">The context that describes the request to instantiate the target type.</param>
- /// <returns>A valid object instance.</returns>
- object CreateInstance(TContext context);
- }
- }