Skip to content
This repository was archived by the owner on Jul 28, 2023. It is now read-only.

specify throwOnValidationFailure when deriving from Command<T> #202

@SurajGupta

Description

@SurajGupta

Unless I'm missing it, there doesn't seem to be a great way throw if CommandValidator produces an invalid report without first evaluating Validator (validating the command against the aggregate). It seems that I would need to override ApplyTo and thus have to maintain much of the same code in Command<T>. It would be great if throwOnValidationFailure was an override-able property on Command<T> instead of an optional method parameter on various internal methods. But again, I could just be missing something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions