# ICommandHandler

- File ID: file:kgb933:icommandhandler-cs
- Path: NexusReader.Application/Abstractions/Messaging/ICommandHandler.cs
- Role: handler
- Layer: application

## Purpose

Defines application-level command handler contracts that adapt MediatR IRequestHandler to return FluentResults.Result wrappers for command operations.

## Key Details

Two small generic interfaces that adapt MediatR's IRequestHandler to return FluentResults.Result/Result<T>, serving as the application-layer command handler abstractions.

## Symbols

- ICommandHandler<TCommand>: Contract for handling command messages that returns a FluentResults.Result indicating success or failure.
- ICommandHandler<TCommand, TResponse>: Contract for handling command messages that return a typed response wrapped in FluentResults.Result<TResponse>.

## Dependencies

- No resolved dependencies.

## Calls

- No resolved calls.

## Coverage

- Symbols: 2
- Executable symbols: 0
- Executable symbols with control flow: 0
- Grounded edges: 2
- Unresolved references: 0
- Control-flow fragments: 0
- Unresolved jumps: 0
- Unsupported constructs: 0
- Control-flow coverage: 100%
- Required diagrams: 1
- Generated diagrams: 1

## Diagrams

### ICommandHandler Neighborhood

```mermaid
flowchart LR
    file_kgb933_icommandhandler_cs("ICommandHandler")
    type_1a1s3lb_icommandhandler_tcommand_tresponse[/"ICommandHandler<TCommand, TResponse>"/]
    type_l7ofd8_icommandhandler_tcommand[/"ICommandHandler<TCommand>"/]
```

## Diagram Validation

- Status: pass
