C# 클래스 Castle.DynamicProxy.ProxyGenerator

Generates a Java style proxy. This overrides the .Net proxy requirements that forces one to extend MarshalByRefObject or (for a different purpose) ContextBoundObject to have a Proxiable class.
The ProxyGenerator should be used to generate a class implementing the specified interfaces. The dynamic implementation will only calls the internal IInterceptor instance. Please note that this proxy implementation currently doesn't not supports ref and out arguments in methods. Also note that only virtual methods can be proxied in a class.
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono 1 사용 예제들

공개 메소드들

메소드 설명
CreateClassProxy ( Type baseClass, IInterceptor interceptor ) : object
CreateClassProxy ( Type baseClass, IInterceptor interceptor, bool checkAbstract ) : object
CreateClassProxy ( Type baseClass, Type interfaces, IInterceptor interceptor ) : object
CreateClassProxy ( Type baseClass, Type interfaces, IInterceptor interceptor, bool checkAbstract ) : object
CreateCustomClassProxy ( Type baseClass, IInterceptor interceptor, GeneratorContext context ) : object
CreateCustomClassProxy ( Type baseClass, IInterceptor interceptor, GeneratorContext context, bool checkAbstract ) : object
CreateCustomProxy ( Type theInterface, IInterceptor interceptor, object target, GeneratorContext context ) : object

CreateProxy ( Type theInterface, IInterceptor interceptor, object target ) : object

Generates a proxy implementing all the specified interfaces and redirecting method invocations to the specifed interceptor.

ProxyGenerator ( ) : System
ProxyGenerator ( IProxyBuilder builder ) : System

보호된 메소드들

메소드 설명
CreateClassProxyInstance ( Type type, IInterceptor interceptor ) : object
CreateCustomClassProxyInstance ( Type type, IInterceptor interceptor, GeneratorContext context ) : object
CreateCustomClassProxyInstance ( Type type, IInterceptor interceptor, GeneratorContext context, object target ) : object
CreateCustomProxyInstance ( Type type, IInterceptor interceptor, object target, GeneratorContext context ) : object
CreateProxyInstance ( Type type, IInterceptor interceptor, object target ) : object

메소드 상세

CreateClassProxy() 공개 메소드

public CreateClassProxy ( Type baseClass, IInterceptor interceptor ) : object
baseClass System.Type
interceptor IInterceptor
리턴 object

CreateClassProxy() 공개 메소드

public CreateClassProxy ( Type baseClass, IInterceptor interceptor, bool checkAbstract ) : object
baseClass System.Type
interceptor IInterceptor
checkAbstract bool
리턴 object

CreateClassProxy() 공개 메소드

public CreateClassProxy ( Type baseClass, Type interfaces, IInterceptor interceptor ) : object
baseClass System.Type
interfaces System.Type
interceptor IInterceptor
리턴 object

CreateClassProxy() 공개 메소드

public CreateClassProxy ( Type baseClass, Type interfaces, IInterceptor interceptor, bool checkAbstract ) : object
baseClass System.Type
interfaces System.Type
interceptor IInterceptor
checkAbstract bool
리턴 object

CreateClassProxyInstance() 보호된 메소드

protected CreateClassProxyInstance ( Type type, IInterceptor interceptor ) : object
type System.Type
interceptor IInterceptor
리턴 object

CreateCustomClassProxy() 공개 메소드

public CreateCustomClassProxy ( Type baseClass, IInterceptor interceptor, GeneratorContext context ) : object
baseClass System.Type
interceptor IInterceptor
context GeneratorContext
리턴 object

CreateCustomClassProxy() 공개 메소드

public CreateCustomClassProxy ( Type baseClass, IInterceptor interceptor, GeneratorContext context, bool checkAbstract ) : object
baseClass System.Type
interceptor IInterceptor
context GeneratorContext
checkAbstract bool
리턴 object

CreateCustomClassProxyInstance() 보호된 메소드

protected CreateCustomClassProxyInstance ( Type type, IInterceptor interceptor, GeneratorContext context ) : object
type System.Type
interceptor IInterceptor
context GeneratorContext
리턴 object

CreateCustomClassProxyInstance() 보호된 메소드

protected CreateCustomClassProxyInstance ( Type type, IInterceptor interceptor, GeneratorContext context, object target ) : object
type System.Type
interceptor IInterceptor
context GeneratorContext
target object
리턴 object

CreateCustomProxy() 공개 메소드

public CreateCustomProxy ( Type theInterface, IInterceptor interceptor, object target, GeneratorContext context ) : object
theInterface System.Type
interceptor IInterceptor
target object The proxy target.
context GeneratorContext
리턴 object

CreateCustomProxyInstance() 보호된 메소드

protected CreateCustomProxyInstance ( Type type, IInterceptor interceptor, object target, GeneratorContext context ) : object
type System.Type
interceptor IInterceptor
target object
context GeneratorContext
리턴 object

CreateProxy() 공개 메소드

Generates a proxy implementing all the specified interfaces and redirecting method invocations to the specifed interceptor.
public CreateProxy ( Type theInterface, IInterceptor interceptor, object target ) : object
theInterface System.Type Interface to be implemented
interceptor IInterceptor instance of
target object The proxy target.
리턴 object

CreateProxyInstance() 보호된 메소드

protected CreateProxyInstance ( Type type, IInterceptor interceptor, object target ) : object
type System.Type
interceptor IInterceptor
target object
리턴 object

ProxyGenerator() 공개 메소드

public ProxyGenerator ( ) : System
리턴 System

ProxyGenerator() 공개 메소드

public ProxyGenerator ( IProxyBuilder builder ) : System
builder IProxyBuilder
리턴 System