C# Class Simple.DynamicProxy.DynamicProxyFactory

Mostra file Open project: juanplopes/simple

Public Methods

Method Description
CreateMarshallableProxy ( MarshalByRefObject target, InvocationDelegate invocationHandler ) : object
CreateMarshallableProxy ( Type type, MarshalByRefObject target, InvocationDelegate invocationHandler ) : object
CreateProxy ( object target, InvocationDelegate invocationHandler ) : object

Create a proxy for the target object

CreateProxy ( object target, InvocationDelegate invocationHandler, bool strict ) : object

Create a proxy for the target object

CreateProxy ( object target, InvocationDelegate invocationHandler, bool strict, Type supportedTypes ) : object

Create a proxy for the target object

Private Methods

Method Description
DynamicProxyFactory ( ) : System

Method Details

CreateMarshallableProxy() public method

public CreateMarshallableProxy ( MarshalByRefObject target, InvocationDelegate invocationHandler ) : object
target System.MarshalByRefObject
invocationHandler InvocationDelegate
return object

CreateMarshallableProxy() public method

public CreateMarshallableProxy ( Type type, MarshalByRefObject target, InvocationDelegate invocationHandler ) : object
type System.Type
target System.MarshalByRefObject
invocationHandler InvocationDelegate
return object

CreateProxy() public method

Create a proxy for the target object
public CreateProxy ( object target, InvocationDelegate invocationHandler ) : object
target object The object to create a proxy for
invocationHandler InvocationDelegate The invocation handler for the proxy
return object

CreateProxy() public method

Create a proxy for the target object
public CreateProxy ( object target, InvocationDelegate invocationHandler, bool strict ) : object
target object The object to create a proxy for
invocationHandler InvocationDelegate The invocation handler for the proxy
strict bool Indicates if the cast support should be strict. If strict is true all casts are checked before being performed
return object

CreateProxy() public method

Create a proxy for the target object
public CreateProxy ( object target, InvocationDelegate invocationHandler, bool strict, Type supportedTypes ) : object
target object The object to create a proxy for
invocationHandler InvocationDelegate The invocation handler for the proxy
strict bool Indicates if the cast support should be strict. If strict is true all casts are checked before being performed. The supportedType list will enabled support for more interfaces than the target object supports
supportedTypes System.Type List of types that are supported for casts. Is only checked if strict is true.
return object