Class ConnectionSettingsAwareContractResolver
Implements
IContractResolver
Inherited Members
DefaultContractResolver.DynamicCodeGeneration
DefaultContractResolver.DefaultMembersSearchFlags
DefaultContractResolver.SerializeCompilerGeneratedMembers
DefaultContractResolver.IgnoreSerializableInterface
DefaultContractResolver.IgnoreSerializableAttribute
DefaultContractResolver.IgnoreIsSpecifiedMembers
DefaultContractResolver.IgnoreShouldSerializeMembers
DefaultContractResolver.NamingStrategy
Namespace: OpenSearch.Client.JsonNetSerializer
Assembly: OpenSearch.Client.JsonNetSerializer.dll
Syntax
public class ConnectionSettingsAwareContractResolver : DefaultContractResolver, IContractResolver
Constructors
| Edit this page View SourceConnectionSettingsAwareContractResolver(IConnectionSettingsValues)
Declaration
public ConnectionSettingsAwareContractResolver(IConnectionSettingsValues connectionSettings)
Parameters
Type | Name | Description |
---|---|---|
IConnectionSettingsValues | connectionSettings |
Properties
| Edit this page View SourceConnectionSettings
Declaration
protected IConnectionSettingsValues ConnectionSettings { get; }
Property Value
Type | Description |
---|---|
IConnectionSettingsValues |
Methods
| Edit this page View SourceCreateContract(Type)
Determines which contract type is created for the given type.
Declaration
protected override JsonContract CreateContract(Type objectType)
Parameters
Type | Name | Description |
---|---|---|
Type | objectType | Type of the object. |
Returns
Type | Description |
---|---|
JsonContract | A Newtonsoft.Json.Serialization.JsonContract for the given type. |
Overrides
| Edit this page View SourceCreateProperty(MemberInfo, MemberSerialization)
Creates a Newtonsoft.Json.Serialization.JsonProperty for the given MemberInfo.
Declaration
protected override JsonProperty CreateProperty(MemberInfo member, MemberSerialization memberSerialization)
Parameters
Type | Name | Description |
---|---|---|
MemberInfo | member | The member to create a Newtonsoft.Json.Serialization.JsonProperty for. |
MemberSerialization | memberSerialization | The member's parent Newtonsoft.Json.MemberSerialization. |
Returns
Type | Description |
---|---|
JsonProperty | A created Newtonsoft.Json.Serialization.JsonProperty for the given MemberInfo. |
Overrides
| Edit this page View SourceResolvePropertyName(string)
Resolves the name of the property.
Declaration
protected override string ResolvePropertyName(string fieldName)
Parameters
Type | Name | Description |
---|---|---|
string | fieldName |
Returns
Type | Description |
---|---|
string | Resolved name of the property. |
Overrides
Implements
Newtonsoft.Json.Serialization.IContractResolver