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 |
---|---|---|
IConnection |
connectionSettings |
Properties
| Edit this page View SourceConnectionSettings
Declaration
protected IConnectionSettingsValues ConnectionSettings { get; }
Property Value
Type | Description |
---|---|
IConnection |
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 |
---|---|
Json |
A Newtonsoft. |
Overrides
| Edit this page View SourceCreateProperty(MemberInfo, MemberSerialization)
Creates a Newtonsoft.
Declaration
protected override JsonProperty CreateProperty(MemberInfo member, MemberSerialization memberSerialization)
Parameters
Type | Name | Description |
---|---|---|
Member |
member | The member to create a Newtonsoft. |
Member |
memberSerialization | The member's parent Newtonsoft. |
Returns
Type | Description |
---|---|
Json |
A created Newtonsoft. |
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