/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

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