-
Notifications
You must be signed in to change notification settings - Fork 345
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
Bug/476 multiple methods per interface with JSON serialization doesn´t work #1343
Merged
WhitWaldo
merged 22 commits into
dapr:master
from
paule96:bug/476_multiple_methods_per_interface_with_json_serialisation_doesntwork
Dec 3, 2024
Merged
Changes from 9 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
7ab916c
update devcontainer
paule96 5412da5
update test setup
paule96 4dc9fc3
Now the json serialization should work with multiple methods in an in…
paule96 a31531a
fixed devcontainer to run actors
paule96 a940c1c
fix bugs with the current implementation
paule96 a03ff46
add a test that checks excatly the behavior
paule96 a4222c9
fix devcontainer post creatd command
paule96 7be9077
change the default to dotnet 8.0
paule96 78764aa
Merge branch 'master' into bug/476_multiple_methods_per_interface_wit…
yaron2 2d8d533
Merge branch 'master' into bug/476_multiple_methods_per_interface_wit…
WhitWaldo 24ce360
Merge branch 'master' into bug/476_multiple_methods_per_interface_wit…
WhitWaldo e95a7f2
Merge branch 'master' into bug/476_multiple_methods_per_interface_wit…
WhitWaldo 8a721be
Merge branch 'master' into bug/476_multiple_methods_per_interface_wit…
WhitWaldo 698b837
I don't know what is different but we commit.
paule96 96ba8ad
make it easier to see why the application of an E2E test couldn't start
paule96 a7f0a92
make the exception in E2E more percise
paule96 9e34381
Merge branch 'master' into bug/476_multiple_methods_per_interface_wit…
WhitWaldo 00ad7d7
Merge branch 'master' into bug/476_multiple_methods_per_interface_wit…
WhitWaldo de167bf
Merge branch 'master' into bug/476_multiple_methods_per_interface_wit…
WhitWaldo d3e961c
Merge branch 'master' into bug/476_multiple_methods_per_interface_wit…
WhitWaldo 9fc6fcd
fix exception message
paule96 9a74614
Merge remote-tracking branch 'origin/bug/476_multiple_methods_per_int…
paule96 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,7 +104,10 @@ public MemoryStreamMessageBodySerializer( | |
{ | ||
var _methodRequestParameterTypes = new List<Type>(methodRequestParameterTypes); | ||
var _wrappedRequestMessageTypes = new List<Type>(wrappedRequestMessageTypes); | ||
|
||
if(_wrappedRequestMessageTypes.Count > 1){ | ||
throw new NotSupportedException("JSON serialisation should always provide the actor method (or nothing), that was called" + | ||
" to support (de)serialisation. This is a dapr sdk error, open an issue on github."); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "dapr" -> "Dapr" |
||
} | ||
this.serializerOptions = new(serializerOptions) | ||
{ | ||
// Workaround since WrappedMessageBody creates an object | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally, this should be pinned to a particular version in case breaking changes are introduced later on.