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

Make camel case json converter public #275

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

murphymcquet-msft
Copy link

No description provided.

@RyanToth3
Copy link
Member

Let's hold off on checking this in until we're sure we've got this scenario working

/// A <see cref="ServiceJsonRpcDescriptor"/> derived type that applies camelCase naming transforms to method and event names
/// and trims off any trailing "Async" suffix.
/// </summary>
public class CamelCaseTransformingDescriptor : ServiceJsonRpcDescriptor
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something to consider: camel case transformation is just one aspect of a descriptor. And one cannot mix and match derived types to get one descriptor with all the behaviors one wants. This is why ServiceJsonRpcDescriptor has several options within itself.
Consider making camel case behavior a separate class or utility that can be added into a descriptor instance, in a way that supports mixing in other options.

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