Class DelegateProxyGenerator

Type generator for creating proxies that intercept delegate invocations.

Inheritance
System.Object
TypeEmitter
Generator
DelegateProxyGenerator
Inherited Members
Generator.GenerateId(String, IEnumerable<Type>)
Generator.ActivateAsync(ITuple, CancellationToken)
Generator.GetGeneratedTypeAsync(CancellationToken)
Generator.GetGeneratedType()
Generator.Id
Namespace: Solti.Utils.Proxy.Generators
Assembly: Solti.Utils.Proxy.dll
Syntax
public sealed class DelegateProxyGenerator : Generator

Constructors

DelegateProxyGenerator(Type)

Type generator for creating proxies that intercept delegate invocations.

Declaration
public DelegateProxyGenerator(Type delegateType)
Parameters
Type Name Description
System.Type delegateType

Properties

DelegateType

The delegate type to be used.

Declaration
public Type DelegateType { get; }
Property Value
Type Description
System.Type

Methods

Activate(IInterceptor, Delegate)

Activates the underlying proxy type.

Declaration
public object Activate(IInterceptor interceptor, Delegate delegate)
Parameters
Type Name Description
IInterceptor interceptor
System.Delegate delegate
Returns
Type Description
System.Object

ActivateAsync(IInterceptor, Delegate, CancellationToken)

Activates the proxy type.

Declaration
public Task<object> ActivateAsync(IInterceptor interceptor, Delegate delegate, CancellationToken cancellation = null)
Parameters
Type Name Description
IInterceptor interceptor
System.Delegate delegate
System.Threading.CancellationToken cancellation
Returns
Type Description
System.Threading.Tasks.Task<System.Object>
In This Article
Back to top Generated by DocFX