Class PublishEventLoggingInterceptor
Logs an event to the configured logger, indicating that it was successfully published.
Inheritance
System.Object
PublishEventLoggingInterceptor
Namespace: Copper.Diagnostics.Service.Interceptors
Assembly: Copper.Diagnostics.Service.dll
Syntax
public class PublishEventLoggingInterceptor : ISendInterceptor
Constructors
View SourcePublishEventLoggingInterceptor(ILogger<PublishEventLoggingInterceptor>)
Initializes a new instance of the PublishEventLoggingInterceptor class.
Declaration
public PublishEventLoggingInterceptor(ILogger<PublishEventLoggingInterceptor> logger)
Parameters
Type | Name | Description |
---|---|---|
ILogger<PublishEventLoggingInterceptor> | logger | The logger. |
Methods
View SourceInterceptAsynchronous(IInvocation)
Intercepts an asynchronous method invocation
with return type of System.Threading.Tasks.Task.
Declaration
public void InterceptAsynchronous(IInvocation invocation)
Parameters
Type | Name | Description |
---|---|---|
IInvocation | invocation | The method invocation. |
InterceptAsynchronous<TResult>(IInvocation)
Intercepts an asynchronous method invocation
with return type of System.Threading.Tasks.Task<TResult>.
Declaration
public void InterceptAsynchronous<TResult>(IInvocation invocation)
Parameters
Type | Name | Description |
---|---|---|
IInvocation | invocation | The method invocation. |
Type Parameters
Name | Description |
---|---|
TResult | The type of the System.Threading.Tasks.Task<TResult> result. |
InterceptSynchronous(IInvocation)
Intercepts a synchronous method invocation
.
Declaration
public void InterceptSynchronous(IInvocation invocation)
Parameters
Type | Name | Description |
---|---|---|
IInvocation | invocation | The method invocation. |