Class ConnectionSettingsAwareSerializerBase
Inheritance
ConnectionSettingsAwareSerializerBase
Assembly: OpenSearch.Client.JsonNetSerializer.dll
Syntax
public abstract class ConnectionSettingsAwareSerializerBase : IOpenSearchSerializer, IPropertyMappingProvider
Constructors
|
Edit this page
View Source
ConnectionSettingsAwareSerializerBase(IOpenSearchSerializer, IConnectionSettingsValues)
Declaration
protected ConnectionSettingsAwareSerializerBase(IOpenSearchSerializer builtinSerializer, IConnectionSettingsValues connectionSettings)
Parameters
Fields
|
Edit this page
View Source
Properties
Declaration
protected readonly ConcurrentDictionary<string, IPropertyMapping> Properties
Field Value
Properties
|
Edit this page
View Source
BufferSize
Declaration
protected virtual int BufferSize { get; }
Property Value
|
Edit this page
View Source
BuiltinSerializer
Declaration
protected IOpenSearchSerializer BuiltinSerializer { get; }
Property Value
|
Edit this page
View Source
ConnectionSettings
Declaration
protected IConnectionSettingsValues ConnectionSettings { get; }
Property Value
|
Edit this page
View Source
ContractJsonConverters
Declaration
protected IEnumerable<JsonConverter> ContractJsonConverters { get; }
Property Value
|
Edit this page
View Source
JsonSerializerSettingsFactory
Declaration
protected Func<JsonSerializerSettings> JsonSerializerSettingsFactory { get; }
Property Value
Type |
Description |
Func<JsonSerializerSettings> |
|
|
Edit this page
View Source
ModifyContractResolverCallback
Declaration
protected Action<ConnectionSettingsAwareContractResolver> ModifyContractResolverCallback { get; }
Property Value
Methods
|
Edit this page
View Source
CreateContractResolver()
Declaration
protected virtual ConnectionSettingsAwareContractResolver CreateContractResolver()
Returns
|
Edit this page
View Source
CreateJsonConverters()
Declaration
protected virtual IEnumerable<JsonConverter> CreateJsonConverters()
Returns
|
Edit this page
View Source
CreateJsonSerializerSettings()
Declaration
protected virtual JsonSerializerSettings CreateJsonSerializerSettings()
Returns
Type |
Description |
JsonSerializerSettings |
|
|
Edit this page
View Source
CreatePropertyMapping(MemberInfo)
Declaration
public IPropertyMapping CreatePropertyMapping(MemberInfo memberInfo)
Parameters
Returns
|
Edit this page
View Source
Deserialize(Type, Stream)
Deserialize stream
to an instance of type
Declaration
public object Deserialize(Type type, Stream stream)
Parameters
Returns
|
Edit this page
View Source
DeserializeAsync(Type, Stream, CancellationToken)
Deserialize stream
to an instance of type
Declaration
public virtual Task<object> DeserializeAsync(Type type, Stream stream, CancellationToken cancellationToken = default)
Parameters
Returns
|
Edit this page
View Source
DeserializeAsync<T>(Stream, CancellationToken)
Deserialize stream
to an instance of T
Declaration
public virtual Task<T> DeserializeAsync<T>(Stream stream, CancellationToken cancellationToken = default)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
Deserialize<T>(Stream)
Deserialize stream
to an instance of T
Declaration
public T Deserialize<T>(Stream stream)
Parameters
Type |
Name |
Description |
Stream |
stream |
|
Returns
Type Parameters
|
Edit this page
View Source
ModifyContractResolver(ConnectionSettingsAwareContractResolver)
Declaration
protected virtual void ModifyContractResolver(ConnectionSettingsAwareContractResolver resolver)
Parameters
|
Edit this page
View Source
Serialize an instance of T
to stream
using formatting
.
Declaration
public Task SerializeAsync<T>(T data, Stream stream, SerializationFormatting formatting = SerializationFormatting.None, CancellationToken cancellationToken = default)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
Serialize an instance of T
to stream
using formatting
.
Declaration
public void Serialize<T>(T data, Stream stream, SerializationFormatting formatting = SerializationFormatting.None)
Parameters
Type Parameters
Implements
Extension Methods