Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Make ICommandHandler backwards compatible using default interface met… #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DemetriouJohn
Copy link

@DemetriouJohn DemetriouJohn commented Oct 10, 2022

…hod implementation

This may not be the ideal solution, but this is an example of how it could be done to ease update to the latest version.

Basically introducing default interface method implementation in ICommandHandler for the updated signature calling the old signature makes it fully backwards compatible to when ICommandHandler.HandleAsync did not have CancellationToken argument.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant