Skip to content

Be explicit about failing assumptions #2

@corstian

Description

@corstian

Ran into a practical issue with a custom implementation of the IAggregateHandlerFactory. As the Instantiate method had been an explicit interface implementation, the default interface method as implemented on the IAggregateHandlerFactory was unable to use reflection to direct the call to the implementation.

The action point here is to be more explicit about assumptions, and explicitly throw an exception when those are broken. Specifically scoped to operations involving reflection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions