Show / Hide Table of Contents

    Class LoggingBehavior<TRequest, TResponse>

    It wraps the request generated logs, the handling request log will have the request params and handled request log will have the response.

    Inheritance
    object
    LoggingBehavior<TRequest, TResponse>
    Implements
    IPipelineBehavior<TRequest, TResponse>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Code.Library.Application.Behaviors
    Assembly: Code.Library.Application.dll
    Syntax
    public class LoggingBehavior<TRequest, TResponse> : IPipelineBehavior<TRequest, TResponse> where TRequest : IRequest<TResponse>
    Type Parameters
    Name Description
    TRequest
    TResponse
    Remarks

    Credits: https://github.com/dotnet-architecture/eShopOnContainers

    Constructors

    | Improve this Doc View Source

    LoggingBehavior(ILogger<LoggingBehavior<TRequest, TResponse>>)

    It wraps the request generated logs, the handling request log will have the request params and handled request log will have the response.

    Declaration
    public LoggingBehavior(ILogger<LoggingBehavior<TRequest, TResponse>> logger)
    Parameters
    Type Name Description
    ILogger<LoggingBehavior<TRequest, TResponse>> logger
    Remarks

    Credits: https://github.com/dotnet-architecture/eShopOnContainers

    Methods

    | Improve this Doc View Source

    Handle(TRequest, CancellationToken, RequestHandlerDelegate<TResponse>)

    It wraps the request generated logs, the handling request log will have the request params and handled request log will have the response.

    Declaration
    public Task<TResponse> Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate<TResponse> next)
    Parameters
    Type Name Description
    TRequest request
    CancellationToken cancellationToken
    RequestHandlerDelegate<TResponse> next
    Returns
    Type Description
    Task<TResponse>
    Remarks

    Credits: https://github.com/dotnet-architecture/eShopOnContainers

    Implements

    MediatR.IPipelineBehavior<TRequest, TResponse>

    Extension Methods

    SerializationHelper.SerializeObject<T>(T)
    SerializationHelper.SerializeObjectUsingBinaryFormatter<T>(T)
    SerializationHelper.SerializeToXML<T>(T)
    GenericTypeExtensions.GetGenericTypeName(object)
    • Improve this Doc
    • View Source
    Back to top Generated by Abhith Rajan using DocFX