Class ClassProxyGenerator<TClass>
Type generator for creating proxies that intercept class method calls.
Inheritance
System.Object
ClassProxyGenerator<TClass>
Inherited Members
Namespace: Solti.Utils.Proxy.Generators
Assembly: Solti.Utils.Proxy.dll
Syntax
public sealed class ClassProxyGenerator<TClass> : Generator<ClassProxyGenerator, ClassProxyGenerator<TClass>> where TClass : class
Type Parameters
Name | Description |
---|---|
TClass | The class to be proxied |
Constructors
ClassProxyGenerator()
Declaration
public ClassProxyGenerator()
Methods
Activate(IInterceptor, ITuple)
Creates an instance of the generated type.
Declaration
public static TClass Activate(IInterceptor interceptor, ITuple ctorParamz)
Parameters
Type | Name | Description |
---|---|---|
IInterceptor | interceptor | |
System.Runtime.CompilerServices.ITuple | ctorParamz |
Returns
Type | Description |
---|---|
TClass |
ActivateAsync(IInterceptor, ITuple, CancellationToken)
Creates an instance of the generated type.
Declaration
public static Task<TClass> 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<TClass> |
GetConcreteGenerator()
Gets the concrete generator.
Declaration
protected override ClassProxyGenerator GetConcreteGenerator()
Returns
Type | Description |
---|---|
ClassProxyGenerator |
Overrides
Solti.Utils.Proxy.Internals.Generator<Solti.Utils.Proxy.Generators.ClassProxyGenerator, Solti.Utils.Proxy.Generators.ClassProxyGenerator<TClass>>.GetConcreteGenerator()