C# Class Castle.DynamicProxy.DefaultProxyBuilder

Default implementation of IProxyBuilder interface producing in-memory proxy assemblies.
Inheritance: IProxyBuilder
Show file Open project: Jarvin-Guan/CleanAOP Class Usage Examples

Public Methods

Method Description
CreateClassProxyType ( Type classToProxy, Type additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options ) : Type
CreateClassProxyTypeWithTarget ( Type classToProxy, Type additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options ) : Type
CreateInterfaceProxyTypeWithTarget ( Type interfaceToProxy, Type additionalInterfacesToProxy, Type targetType, Castle.DynamicProxy.ProxyGenerationOptions options ) : Type
CreateInterfaceProxyTypeWithTargetInterface ( Type interfaceToProxy, Type additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options ) : Type
CreateInterfaceProxyTypeWithoutTarget ( Type interfaceToProxy, Type additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options ) : Type
DefaultProxyBuilder ( ) : System

Initializes a new instance of the DefaultProxyBuilder class with new ModuleScope.

DefaultProxyBuilder ( ModuleScope scope ) : System

Initializes a new instance of the DefaultProxyBuilder class.

Private Methods

Method Description
AssertValidType ( Type target ) : void
AssertValidTypes ( IEnumerable targetTypes ) : void
IsAccessible ( Type target ) : bool
IsInternal ( Type target ) : bool
IsPublic ( Type target ) : bool

Method Details

CreateClassProxyType() public method

public CreateClassProxyType ( Type classToProxy, Type additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options ) : Type
classToProxy System.Type
additionalInterfacesToProxy System.Type
options Castle.DynamicProxy.ProxyGenerationOptions
return System.Type

CreateClassProxyTypeWithTarget() public method

public CreateClassProxyTypeWithTarget ( Type classToProxy, Type additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options ) : Type
classToProxy System.Type
additionalInterfacesToProxy System.Type
options Castle.DynamicProxy.ProxyGenerationOptions
return System.Type

CreateInterfaceProxyTypeWithTarget() public method

public CreateInterfaceProxyTypeWithTarget ( Type interfaceToProxy, Type additionalInterfacesToProxy, Type targetType, Castle.DynamicProxy.ProxyGenerationOptions options ) : Type
interfaceToProxy System.Type
additionalInterfacesToProxy System.Type
targetType System.Type
options Castle.DynamicProxy.ProxyGenerationOptions
return System.Type

CreateInterfaceProxyTypeWithTargetInterface() public method

public CreateInterfaceProxyTypeWithTargetInterface ( Type interfaceToProxy, Type additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options ) : Type
interfaceToProxy System.Type
additionalInterfacesToProxy System.Type
options Castle.DynamicProxy.ProxyGenerationOptions
return System.Type

CreateInterfaceProxyTypeWithoutTarget() public method

public CreateInterfaceProxyTypeWithoutTarget ( Type interfaceToProxy, Type additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options ) : Type
interfaceToProxy System.Type
additionalInterfacesToProxy System.Type
options Castle.DynamicProxy.ProxyGenerationOptions
return System.Type

DefaultProxyBuilder() public method

Initializes a new instance of the DefaultProxyBuilder class with new ModuleScope.
public DefaultProxyBuilder ( ) : System
return System

DefaultProxyBuilder() public method

Initializes a new instance of the DefaultProxyBuilder class.
public DefaultProxyBuilder ( ModuleScope scope ) : System
scope ModuleScope The module scope for generated proxy types.
return System