Skip to content

CRS 2 Design #3

@clegendre

Description

@clegendre

Main interface ICommandHandler is renamed to IRequestHandler (to support commands and events...) and does no longer returns a result (but Task obviously).

    public interface IRequestHandler<T>
    {
        Task HandleAsync( T request, ICommandContext context );
    }

This enforces to treat impacts of a command like pure events.
What are your thoughts about that?
Is it really what we want?
Should CRS still offers a way to return "synchronous" results of a command or should we left this usage for simple REST-like interactions ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions