C# Class Castle.DynamicProxy.Generators.InterfaceProxyWithTargetGenerator

Inheritance: BaseProxyGenerator
Afficher le fichier Open project: Jarvin-Guan/CleanAOP Class Usage Examples

Protected Properties

Свойство Type Description
targetField Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference

Méthodes publiques

Méthode Description
GenerateCode ( Type proxyTargetType, Type interfaces, ProxyGenerationOptions options ) : Type
InterfaceProxyWithTargetGenerator ( ModuleScope scope, Type @interface ) : System

Méthodes protégées

Méthode Description
AddMappingForTargetType ( ITypeContributor>.IDictionary typeImplementerMapping, Type proxyTargetType, ICollection targetInterfaces, ICollection additionalInterfaces, INamingScope namingScope ) : ITypeContributor
CreateTypeAttributes ( ClassEmitter emitter ) : void
GenerateType ( string typeName, Type proxyTargetType, Type interfaces, INamingScope namingScope ) : Type
GetContributorForAdditionalInterfaces ( INamingScope namingScope ) : InterfaceProxyWithoutTargetContributor
GetTypeImplementerMapping ( Type interfaces, Type proxyTargetType, IEnumerable &contributors, INamingScope namingScope ) : IEnumerable
Init ( string typeName, ClassEmitter &emitter, Type proxyTargetType, FieldReference &interceptorsField, IEnumerable interfaces ) : Type

Private Methods

Méthode Description
CreateFields ( ClassEmitter emitter, Type proxyTargetType ) : void
EnsureValidBaseType ( Type type ) : void
ImplementedByTarget ( ICollection targetInterfaces, Type @interface ) : bool
ThrowInvalidBaseType ( Type type, string doesNotHaveAccessibleParameterlessConstructor ) : void

Method Details

AddMappingForTargetType() protected méthode

protected AddMappingForTargetType ( ITypeContributor>.IDictionary typeImplementerMapping, Type proxyTargetType, ICollection targetInterfaces, ICollection additionalInterfaces, INamingScope namingScope ) : ITypeContributor
typeImplementerMapping ITypeContributor>.IDictionary
proxyTargetType System.Type
targetInterfaces ICollection
additionalInterfaces ICollection
namingScope INamingScope
Résultat ITypeContributor

CreateTypeAttributes() protected méthode

protected CreateTypeAttributes ( ClassEmitter emitter ) : void
emitter Castle.DynamicProxy.Generators.Emitters.ClassEmitter
Résultat void

GenerateCode() public méthode

public GenerateCode ( Type proxyTargetType, Type interfaces, ProxyGenerationOptions options ) : Type
proxyTargetType System.Type
interfaces System.Type
options ProxyGenerationOptions
Résultat System.Type

GenerateType() protected méthode

protected GenerateType ( string typeName, Type proxyTargetType, Type interfaces, INamingScope namingScope ) : Type
typeName string
proxyTargetType System.Type
interfaces System.Type
namingScope INamingScope
Résultat System.Type

GetContributorForAdditionalInterfaces() protected méthode

protected GetContributorForAdditionalInterfaces ( INamingScope namingScope ) : InterfaceProxyWithoutTargetContributor
namingScope INamingScope
Résultat Castle.DynamicProxy.Contributors.InterfaceProxyWithoutTargetContributor

GetTypeImplementerMapping() protected méthode

protected GetTypeImplementerMapping ( Type interfaces, Type proxyTargetType, IEnumerable &contributors, INamingScope namingScope ) : IEnumerable
interfaces System.Type
proxyTargetType System.Type
contributors IEnumerable
namingScope INamingScope
Résultat IEnumerable

Init() protected méthode

protected Init ( string typeName, ClassEmitter &emitter, Type proxyTargetType, FieldReference &interceptorsField, IEnumerable interfaces ) : Type
typeName string
emitter Castle.DynamicProxy.Generators.Emitters.ClassEmitter
proxyTargetType System.Type
interceptorsField Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference
interfaces IEnumerable
Résultat System.Type

InterfaceProxyWithTargetGenerator() public méthode

public InterfaceProxyWithTargetGenerator ( ModuleScope scope, Type @interface ) : System
scope ModuleScope
@interface System.Type
Résultat System

Property Details

targetField protected_oe property

protected FieldReference,Castle.DynamicProxy.Generators.Emitters.SimpleAST targetField
Résultat Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference