PageRenderTime 92ms CodeModel.GetById 50ms app.highlight 2ms RepoModel.GetById 39ms app.codeStats 0ms

/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
 1using System;
 2using System.Collections.Generic;
 3
 4namespace LinFu.Proxy.Interfaces
 5{
 6    /// <summary>
 7    ///     Represents the basic interface for creating
 8    ///     dynamic proxy instances.
 9    /// </summary>
10    public interface IProxyFactory
11    {
12        /// <summary>
13        ///     Generates a dynamic proxy type
14        ///     that derives from the <paramref name="baseType" />
15        ///     and implements the given <paramref name="baseInterfaces">interfaces</paramref>.
16        /// </summary>
17        /// <param name="baseType">The base class from which the generated dynamic proxy will be derived.</param>
18        /// <param name="baseInterfaces">The list of interfaces that the generated dynamic proxy will implement.</param>
19        /// <returns>A dynamic proxy type.</returns>
20        Type CreateProxyType(Type baseType, IEnumerable<Type> baseInterfaces);
21    }
22}