View on GitHub
Clean Architecture Toolkit for .NET
Clean Architecture Toolkit is a clean, modular architecture foundation for .NET applications.
It embraces SOLID principles and focuses on maintainability, testability, and scalability through clear boundaries and pluggable design.

|   HOME   |   MODULE OVERVIEW   |   DEMO   |   CAT.COMMANDS   |

Code Reference

» Cat.Commands.Decorators.Logging Assembly » Cat.Commands.Decorators.Logging Namespace » LoggingDecorator Class

LoggingDecorator.CatCommandHandler<TCommand> Class

Logs the start and end of a command handler.

internal sealed class LoggingDecorator.CatCommandHandler<TCommand> : Cat.Commands.Abstractions.ICatCommandHandler<TCommand>
    where TCommand : class, Cat.Commands.Abstractions.ICatCommand

Type parameters

TCommand

The command being handled.

Inheritance System.Object → CatCommandHandler<TCommand>

Implements Cat.Commands.Abstractions.ICatCommandHandler<TCommand>

Constructors  
CatCommandHandler(ICatCommandHandler<TCommand>, ILogger<CatCommandHandler<TCommand>>) Creates the decorator.
Fields  
_innerHandler  
_logger  
Methods  
HandleAsync(TCommand, CancellationToken) Runs the command.