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

Updated remoting listener extensions to support exception serialization #346

Closed
wants to merge 10 commits into from

Conversation

WhitWaldo
Copy link

The latest guidance on exception serialization, provides examples indicating how the instance and replica listeners need to be updated to accommodate the new serialization settings.

Upon reading these, I realized that I use a provided extension method to configure these listeners in my own code and that this serialization change was not yet realized, so I now offer this PR to resolve this.

I've added an overload to each extension method (CreateServiceRemotingInstanceListener() and CreateServiceRemotingReplicaListener()) to allow the developer to pass in an array of IExceptionConvertor for any custom exceptions they may wish to accommodate. By default, the extension provides an empty array in order to avoid necessitating any developer change to use this additional functionality.

In order that this might be consumed without incurring any breaking changes to remoting services, I've added an overload that matches the original signature and provides an empty array of IExceptionConvertor to the new overload. All V1 remoting is left untouched as this change is applicable only to V2.

Rider confirms that this code matches code standard requirements and the project builds locally as expected. Happy to make any changes as required by your team. Thank you for the consideration!

…ionSerialization. Added overload to each to allow custom IExceptionConvertors to be provided as part of the serialization/deserialization.
@yashagarwal23
Copy link
Contributor

Thanks for the contribution @WhitWaldo. We are reviewing the PR.

WhitWaldo and others added 8 commits September 9, 2023 10:02
…sion methods that attempts an optional ExceptionSerialization. This defaults to BinaryFormatter so as not to break existing implementations.

Added another overload that allows the user to provide an aray of IExceptionConvertors. If this is provided, the user intends to use the DSC serialization.

Marked the implementing extension for both Stateful and Stateless services internal so as not to confuse users with the ability to both pass an array of IExceptionConvertor while still setting the serialization technique to BinaryFormatter.
…ing the remoting listener settings from Settings.xml.
@WhitWaldo
Copy link
Author

@yashagarwal23 Apologies for the delay in circling back here. I've applied the changes requested. Please let me know if you'd like any others made.

@olegsych
Copy link
Member

Abandoned

@olegsych olegsych closed this May 29, 2024
@WhitWaldo
Copy link
Author

@olegsych I haven't abandoned this - I'm happy to make any other changes the team wants to move this forward, but since there's no community call any longer, I don't really have a good mechanism to draw any attention here.

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

Successfully merging this pull request may close these issues.

3 participants