Skip to content

Conversation

@taooceros
Copy link
Member

@taooceros taooceros commented Mar 23, 2021

The currently separated interface create quite significant code duplicate, so I try making the old plugin interface extends from the new plugin interface with the default implementation of interface from c# 8. (This is similar to the first version of the new Async model which directly use the default implementation in IPlugin interface).

It is hard to say which choice is better🤔🤔🤔, but this prevents the weird empty default implementation in legacy Query method.

@jjw24
Copy link
Member

jjw24 commented Mar 24, 2021

This is going to force the plugins to implement Async?

@taooceros
Copy link
Member Author

This is going to force the plugins to implement Async?

No, it is the same as the current behavior for IPlugin, which wraps a Task.Run with the Query method.

@jjw24 jjw24 added the enhancement New feature or request label Mar 27, 2021
@jjw24 jjw24 added the review in progress Indicates that a review is in progress for this PR label Mar 27, 2021
@jjw24 jjw24 enabled auto-merge March 31, 2021 20:22
@jjw24 jjw24 removed the review in progress Indicates that a review is in progress for this PR label Mar 31, 2021
@jjw24 jjw24 merged commit 9d4af83 into dev Mar 31, 2021
@jjw24 jjw24 deleted the PluginAncestor branch March 31, 2021 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants