C# Class Simple.DynamicProxy.DynamicProxyFactory

Afficher le fichier Open project: juanplopes/simple

Méthodes publiques

Méthode 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

Méthode Description
DynamicProxyFactory ( ) : System

Method Details

CreateMarshallableProxy() public méthode

public CreateMarshallableProxy ( MarshalByRefObject target, InvocationDelegate invocationHandler ) : object
target System.MarshalByRefObject
invocationHandler InvocationDelegate
Résultat object

CreateMarshallableProxy() public méthode

public CreateMarshallableProxy ( Type type, MarshalByRefObject target, InvocationDelegate invocationHandler ) : object
type System.Type
target System.MarshalByRefObject
invocationHandler InvocationDelegate
Résultat object

CreateProxy() public méthode

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
Résultat object

CreateProxy() public méthode

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
Résultat object

CreateProxy() public méthode

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.
Résultat object