Class ClassProxyGenerator
Type generator for creating proxies that intercept class method calls.
Inheritance
System.Object
ClassProxyGenerator
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
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> |
|