Class ClassProxyGenerator

Type generator for creating proxies that intercept class method calls.

Inheritance
System.Object
TypeEmitter
Generator
ClassProxyGenerator
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 ClassProxyGenerator : Generator

Constructors

ClassProxyGenerator(Type)

Type generator for creating proxies that intercept class method calls.

Declaration
public ClassProxyGenerator(Type class)
Parameters
Type Name Description
System.Type class

Properties

Class

The target class

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

Methods

Activate(IInterceptor, ITuple)

Activates the underlying proxy type.

Declaration
public object Activate(IInterceptor interceptor, ITuple ctorParamz)
Parameters
Type Name Description
IInterceptor interceptor
System.Runtime.CompilerServices.ITuple ctorParamz
Returns
Type Description
System.Object

ActivateAsync(IInterceptor, ITuple, CancellationToken)

Activates the proxy type.

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