C# Класс Simple.DynamicProxy.DynamicProxyFactory

Показать файл Открыть проект

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

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

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

Метод Описание
DynamicProxyFactory ( ) : System

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

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

public CreateMarshallableProxy ( MarshalByRefObject target, InvocationDelegate invocationHandler ) : object
target System.MarshalByRefObject
invocationHandler InvocationDelegate
Результат object

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

public CreateMarshallableProxy ( Type type, MarshalByRefObject target, InvocationDelegate invocationHandler ) : object
type System.Type
target System.MarshalByRefObject
invocationHandler InvocationDelegate
Результат object

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

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

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

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

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

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