Class AspectInterceptor<TInterface>

Defines the base interceptor of aspects.

Inheritance
Object
InterfaceInterceptor<TInterface>
AspectInterceptor<TInterface>
ParameterValidator<TInterface>
RoleValidator<TInterface>
TransactionManager<TInterface>
Implements
IProxyAccess<TInterface>
Inherited Members
InterfaceInterceptor<TInterface>.Target
InterfaceInterceptor<TInterface>.Proxy
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Solti.Utils.Rpc.Internals
Assembly: Solti.Utils.Rpc.Server.dll
Syntax
public abstract class AspectInterceptor<TInterface> : InterfaceInterceptor<TInterface>, IHasTarget<TInterface>, IProxyAccess<TInterface> where TInterface : class
Type Parameters
Name Description
TInterface

Constructors

AspectInterceptor(TInterface)

Creates a new AspectInterceptor<TInterface> instance.

Declaration
protected AspectInterceptor(TInterface target)
Parameters
Type Name Description
TInterface target

Methods

Decorator(InvocationContext, Func<Object>)

The decorator function.

Declaration
protected virtual object Decorator(InvocationContext context, Func<object> callNext)
Parameters
Type Name Description
InvocationContext context
Func<Object> callNext
Returns
Type Description
Object

DecoratorAsync(InvocationContext, Func<Task>)

The decorator function.

Declaration
protected virtual async Task<Task> DecoratorAsync(InvocationContext context, Func<Task> callNext)
Parameters
Type Name Description
InvocationContext context
Func<Task> callNext
Returns
Type Description
Task<Task>

Invoke(InvocationContext)

Aspect specific logic.

Declaration
public override object Invoke(InvocationContext context)
Parameters
Type Name Description
InvocationContext context
Returns
Type Description
Object
Overrides
Solti.Utils.Proxy.InterfaceInterceptor<TInterface>.Invoke(Solti.Utils.Proxy.InvocationContext)

Implements

IProxyAccess<TInterface>
In This Article
Back to top Generated by DocFX