/src/LinFu.Proxy.Interfaces/IProxyFactory.cs
http://github.com/philiplaureano/LinFu · C# · 22 lines · 9 code · 1 blank · 12 comment · 0 complexity · 015ed43967ceff27c493c14b7fbb34c9 MD5 · raw file
- using System;
- using System.Collections.Generic;
- namespace LinFu.Proxy.Interfaces
- {
- /// <summary>
- /// Represents the basic interface for creating
- /// dynamic proxy instances.
- /// </summary>
- public interface IProxyFactory
- {
- /// <summary>
- /// Generates a dynamic proxy type
- /// that derives from the <paramref name="baseType" />
- /// and implements the given <paramref name="baseInterfaces">interfaces</paramref>.
- /// </summary>
- /// <param name="baseType">The base class from which the generated dynamic proxy will be derived.</param>
- /// <param name="baseInterfaces">The list of interfaces that the generated dynamic proxy will implement.</param>
- /// <returns>A dynamic proxy type.</returns>
- Type CreateProxyType(Type baseType, IEnumerable<Type> baseInterfaces);
- }
- }