C# Класс Castle.DynamicProxy.Generators.InterfaceProxyWithTargetGenerator

Наследование: BaseProxyGenerator
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
targetField Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference

Открытые методы

Метод Описание
GenerateCode ( Type proxyTargetType, Type interfaces, ProxyGenerationOptions options ) : Type
InterfaceProxyWithTargetGenerator ( ModuleScope scope, Type @interface ) : System

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
CreateFields ( ClassEmitter emitter, Type proxyTargetType ) : void
EnsureValidBaseType ( Type type ) : void
ImplementedByTarget ( ICollection targetInterfaces, Type @interface ) : bool
ThrowInvalidBaseType ( Type type, string doesNotHaveAccessibleParameterlessConstructor ) : void

Описание методов

AddMappingForTargetType() защищенный Метод

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
Результат ITypeContributor

CreateTypeAttributes() защищенный Метод

protected CreateTypeAttributes ( ClassEmitter emitter ) : void
emitter Castle.DynamicProxy.Generators.Emitters.ClassEmitter
Результат void

GenerateCode() публичный Метод

public GenerateCode ( Type proxyTargetType, Type interfaces, ProxyGenerationOptions options ) : Type
proxyTargetType System.Type
interfaces System.Type
options ProxyGenerationOptions
Результат System.Type

GenerateType() защищенный Метод

protected GenerateType ( string typeName, Type proxyTargetType, Type interfaces, INamingScope namingScope ) : Type
typeName string
proxyTargetType System.Type
interfaces System.Type
namingScope INamingScope
Результат System.Type

GetContributorForAdditionalInterfaces() защищенный Метод

protected GetContributorForAdditionalInterfaces ( INamingScope namingScope ) : InterfaceProxyWithoutTargetContributor
namingScope INamingScope
Результат Castle.DynamicProxy.Contributors.InterfaceProxyWithoutTargetContributor

GetTypeImplementerMapping() защищенный Метод

protected GetTypeImplementerMapping ( Type interfaces, Type proxyTargetType, IEnumerable &contributors, INamingScope namingScope ) : IEnumerable
interfaces System.Type
proxyTargetType System.Type
contributors IEnumerable
namingScope INamingScope
Результат IEnumerable

Init() защищенный Метод

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
Результат System.Type

InterfaceProxyWithTargetGenerator() публичный Метод

public InterfaceProxyWithTargetGenerator ( ModuleScope scope, Type @interface ) : System
scope ModuleScope
@interface System.Type
Результат System

Описание свойств

targetField защищенное свойство

protected FieldReference,Castle.DynamicProxy.Generators.Emitters.SimpleAST targetField
Результат Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference