Skip to content

Result type inconsistency with AuthorizationResult and ValidationPassedResult #9

@paulirwin

Description

@paulirwin

There is some Result type confusion/inconsistency with AuthorizationResult and ValidationPassedResult.

AuthorizationResult is in the Results namespace, but is not an actual Result subclass. It was originally intended to be used with an IAuthorizer<T> interface that was not yet ported to this library. This should be moved out and renamed (TBD).

ValidationPassedResult is only intended to be used with IValidator<T>, not as an actual result type from a command or query handler, which is technically possible today since it ultimately subclasses Result through ValidationResult. We should separate out validation outputs from the Result hierarchy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions