Skip to content

IHandlingConfiguration - Single responsibility principle #7

Description

@gravity00

At the present moment, the interface IHandlingConfiguration is responsible for storing handling configurations and running the handling logic itself. This could be considered a violation of the single responsibility principle.

To resolve this question, it could be split, at least, in two interfaces:

  • IHandlingConfiguration - stores the collection of handlers and other handling properties;
  • IHandlingService - contains the logic for handling exceptions, and uses an IHandlingConfiguration to decide his behavior;

This implementation should allow a more decoupled handling logic.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions