Class Logger<TInterface>
Defines an interceptor that is responsible for logging.
Implements
IProxyAccess<TInterface>
Inherited Members
Namespace: Solti.Utils.Rpc.Aspects
Assembly: Solti.Utils.Rpc.Server.dll
Syntax
public class Logger<TInterface> : InterfaceInterceptor<TInterface>, IHasTarget<TInterface>, IProxyAccess<TInterface> where TInterface : class
Type Parameters
| Name | Description |
|---|---|
| TInterface |
Constructors
Logger(TInterface, IInjector, ILogger)
Creates a new Logger<TInterface> instance.
Declaration
public Logger(TInterface target, IInjector currentScope, ILogger concreteLogger)
Parameters
| Type | Name | Description |
|---|---|---|
| TInterface | target | |
| Solti.Utils.DI.Interfaces.IInjector | currentScope | |
| ILogger | concreteLogger |
Properties
ConcreteLogger
The concrete logger.
Declaration
public ILogger ConcreteLogger { get; }
Property Value
| Type | Description |
|---|---|
| ILogger |
CurrentScope
The current scope.
Declaration
public IInjector CurrentScope { get; }
Property Value
| Type | Description |
|---|---|
| Solti.Utils.DI.Interfaces.IInjector |
Methods
Invoke(InvocationContext)
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)