RazorEngine


BuildProxy

Defined in RazorEngine.dll.

Does most of the work buiding and caching proxies

Static members

Static memberDescription
BuildType(...)
Signature: (contextType:Type * mainInterface:Type * otherInterfaces:Type []) -> Type

Builds the type for the static proxy or returns from cache

Returns:

BuildType(...)
Signature: (contextType:Type * informalInterface:IDictionary<string,Type>) -> Type

Builds the type.

Returns:

EmitCallSiteFuncType(...)
Signature: (argTypes:IEnumerable<Type> * returnType:Type) -> Type

Emits new delegate type of the call site func.

Returns:

PreLoadProxiesFromAssembly(assembly)
Signature: assembly:Assembly -> bool

Preloads proxies that ActLike uses from assembly.

Returns: Returns false if there already is a proxy registered for the same type.

PreLoadProxy(proxyType, attribute)
Signature: (proxyType:Type * attribute:ActLikeProxyAttribute) -> bool

Preloads a proxy for ActLike to use.

Returns: Returns false if there already is a proxy registered for the same type.

RecursiveActLike(target)
Signature: target:obj -> 'TInterface
Type parameters: 'TInterface

Calls ActLike on the given object.

Returns: the wrapper.

WriteOutDll(name)
Signature: name:string -> IDisposable

Writes the out DLL of types created between this call and being closed used for debugging of emitted IL code

Returns:

Remarks

This may be used for generating an assembly for preloading proxies, however you must be very careful when doing so as changes could make the emitted asssembly out of date very easily.

Fork me on GitHub