Skip to content

Conversation

@russcam
Copy link
Contributor

@russcam russcam commented Mar 13, 2019

This commit allows derived implementations of ConnectionSettingsAwareContractResolver
to be specified when creating a derived ConnectionSettingsAwareSerializerBase. This can
be useful when wishing to include Type information in the serialized JSON.

Add documentation to demonstrate how to use.

Closes #3494

This commit allows derived implementations of ConnectionSettingsAwareContractResolver
to be specified when creating a derived ConnectionSettingsAwareSerializerBase. This can
be useful when wishing to include Type information in the serialized JSON.

Add documentation to demonstrate how to use.

Closes #3494
Copy link
Contributor

@codebrain codebrain left a comment

Choose a reason for hiding this comment

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

LGTM, minor comment on the type name as a string.

//json
var expected = new JObject
{
{ "$type", "Tests.ClientConcepts.HighLevel.Serialization.GettingStarted+MyDocument, Tests" },
Copy link
Contributor

Choose a reason for hiding this comment

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

nameof?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nameof only resolves to the leaf value sadly. Could use AssemblyQualifiedName and strip everything after assembly name (seems easiest way)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will keep as string because the JObject is serialized to JSON in documentation and other approaches complicate this.

@russcam russcam merged commit a0eea41 into 6.6 Mar 15, 2019
russcam added a commit that referenced this pull request Mar 20, 2019
…ver (#3599)

This commit allows derived implementations of ConnectionSettingsAwareContractResolver
to be specified when creating a derived ConnectionSettingsAwareSerializerBase. This can
be useful when wishing to include Type information in the serialized JSON.

Add documentation to demonstrate how to use.

Closes #3494
russcam added a commit that referenced this pull request Mar 21, 2019
…ver (#3599)

This commit allows derived implementations of ConnectionSettingsAwareContractResolver
to be specified when creating a derived ConnectionSettingsAwareSerializerBase. This can
be useful when wishing to include Type information in the serialized JSON.

Add documentation to demonstrate how to use.

Closes #3494
@russcam russcam deleted the feature/jsonnetserializer-resolver branch March 27, 2019 03:40
russcam added a commit that referenced this pull request Apr 2, 2019
…ver (#3599)

This commit allows derived implementations of ConnectionSettingsAwareContractResolver
to be specified when creating a derived ConnectionSettingsAwareSerializerBase. This can
be useful when wishing to include Type information in the serialized JSON.

Add documentation to demonstrate how to use.

Closes #3494

(cherry picked from commit f72d9ac)
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