C# Class AspectSharp.Core.CustomProxyGenerator

Generates a dynamic proxy. This overrides the .Net proxy requirements that forces one to extend MarshalByRefObject or (for a different purpose) ContextBoundObject to have a Proxiable class.
Inheritance: Castle.DynamicProxy.ProxyGenerator
Datei anzeigen Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
CreateClassProxy ( Type baseClass, object mixins, Castle.Core.Interceptor.IInterceptor interceptor ) : object

Generates a class which extends the baseClass, overriding all the virtual methods and implementing all the mixin interfaces.

CreateProxy ( Type inter, object target, object mixins, Castle.Core.Interceptor.IInterceptor interceptor ) : object

Generates a proxy implementing the specified interface and the mixins redirecting method invocations to the specifed interceptor.

CustomProxyGenerator ( ) : System

Private Methods

Method Description
CreateProxyGenerationOptions ( object mixins ) : Castle.DynamicProxy.ProxyGenerationOptions

Creates a context - which is used to guid custom proxy generation.

Method Details

CreateClassProxy() public method

Generates a class which extends the baseClass, overriding all the virtual methods and implementing all the mixin interfaces.
public CreateClassProxy ( Type baseClass, object mixins, Castle.Core.Interceptor.IInterceptor interceptor ) : object
baseClass System.Type Super class
mixins object Array of mixins to be implemented by the proxy
interceptor Castle.Core.Interceptor.IInterceptor Instance of
return object

CreateProxy() public method

Generates a proxy implementing the specified interface and the mixins redirecting method invocations to the specifed interceptor.
public CreateProxy ( Type inter, object target, object mixins, Castle.Core.Interceptor.IInterceptor interceptor ) : object
inter System.Type Interface to be implemented.
target object
mixins object Array of instances (mixins) to be introducted.
interceptor Castle.Core.Interceptor.IInterceptor Instance of .
return object

CustomProxyGenerator() public method

public CustomProxyGenerator ( ) : System
return System