Table of Contents

Class EmitWorkerProxy

Namespace
Utils.Reflection.Reflection.Emit
Assembly
Utils.Reflection.dll

DispatchProxy that forwards every interface call to an isolated Utils.Reflection.Reflection.Emit.EmitWorkerProcess. Instances are produced by Emit<TInterface>(string, CallingConvention, TimeSpan?, TimeSpan?) via Create<T, TProxy>(); the generated proxy type never contains caller-controlled source, so it does not carry the code-generation risk documented on EmitDllMappableClass.

public class EmitWorkerProxy : DispatchProxy
Inheritance
EmitWorkerProxy
Inherited Members
Extension Methods

Methods

Invoke(MethodInfo?, object?[]?)

Whenever any method on the generated proxy type is called, this method is invoked to dispatch control.

protected override object? Invoke(MethodInfo? targetMethod, object?[]? args)

Parameters

targetMethod MethodInfo

The method the caller invoked.

args object[]

The arguments the caller passed to the method.

Returns

object

The object to return to the caller, or null for void methods.