C# Класс 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.
Наследование: Castle.DynamicProxy.ProxyGenerator
Показать файл Открыть проект

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

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

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

Метод Описание
CreateProxyGenerationOptions ( object mixins ) : Castle.DynamicProxy.ProxyGenerationOptions

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

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

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

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

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

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

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

public CustomProxyGenerator ( ) : System
Результат System