Class ResponseSerializerProviderOptions
Options for default response serializer provider.
Inheritance
System.Object
ResponseSerializerProviderOptions
Namespace: TehGM.Wolfringo.Messages.Serialization
Assembly: Wolfringo.Core.dll
Syntax
public class ResponseSerializerProviderOptions
Constructors
| Improve this Doc View SourceResponseSerializerProviderOptions()
Initializes a new instance of options using default values.
Declaration
public ResponseSerializerProviderOptions()
Properties
| Improve this Doc View SourceChatEmbedDeserializer
Deserializer of chat embeds that will be used by serializers.
Declaration
public static IChatEmbedDeserializer ChatEmbedDeserializer { get; }
Property Value
Type | Description |
---|---|
IChatEmbedDeserializer |
DefaultHistorySerializer
Default chat history serializer.
Declaration
protected static IResponseSerializer DefaultHistorySerializer { get; }
Property Value
Type | Description |
---|---|
IResponseSerializer |
Remarks
This serializer is used for multiple mappings in default Serializers.
DefaultSerializer
Default serializer.
Declaration
protected static IResponseSerializer DefaultSerializer { get; }
Property Value
Type | Description |
---|---|
IResponseSerializer |
Remarks
This serializer is used for multiple mappings in default Serializers.
FallbackSerializer
Fallback serializer that can be used if key has no mapped serializer.
Declaration
public IResponseSerializer FallbackSerializer { get; set; }
Property Value
Type | Description |
---|---|
IResponseSerializer |
Remarks
Note that this serializer cannot be used for deserialization, and will be used only for serialization.
Defaults to DefaultResponseSerializer.
Serializers
Map for response type and assigned response serializer.
Declaration
public IDictionary<Type, IResponseSerializer> Serializers { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.Type, IResponseSerializer> |