Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

breaking: Add a interface to IInteraction #3586

Merged
merged 7 commits into from Jul 14, 2023

Conversation

glennawatson
Copy link
Contributor

@glennawatson glennawatson commented Jul 14, 2023

On the interface IInteractionContext the GetOutput() is no longer accessible. You can still cast the concrete class. This enforces strict requirements

Since Interaction generated the InteractionContext there should be minimal changes to users unless they use GetOutput on the context. The GetOutput is on another interface used internally to get the output value.

There is now support for providing your own context's by overriding the protected method GenerateContext on the Interaction class.

@codecov
Copy link

codecov bot commented Jul 14, 2023

Codecov Report

Patch coverage: 96.77% and no project coverage change.

Comparison is base (178abac) 64.00% compared to head (2a026c5) 64.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3586   +/-   ##
=======================================
  Coverage   64.00%   64.00%           
=======================================
  Files         157      157           
  Lines        5750     5748    -2     
=======================================
- Hits         3680     3679    -1     
+ Misses       2070     2069    -1     
Impacted Files Coverage Δ
src/ReactiveUI/Interactions/InteractionContext.cs 100.00% <ø> (ø)
src/ReactiveUI/Interactions/Interaction.cs 97.77% <94.73%> (-0.05%) ⬇️
...ngs/Interaction/InteractionBinderImplementation.cs 83.33% <100.00%> (ø)
...I/Bindings/Interaction/InteractionBindingMixins.cs 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@glennawatson glennawatson merged commit 3f11619 into main Jul 14, 2023
3 checks passed
@glennawatson glennawatson deleted the glennawatson/interaction-interface-variants branch July 14, 2023 06:15
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 29, 2023
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.

None yet

2 participants