Wolfringo Wolfringo
Wolfringo Wolfringo
Wolfringo (c) 2020 TehGM
DocFX, DiscordFX theme.
Search Results for

    Class MessageSerializerProviderOptions

    Options for default message serializer provider.

    Inheritance
    System.Object
    MessageSerializerProviderOptions
    Namespace: TehGM.Wolfringo.Messages.Serialization
    Assembly: Wolfringo.Core.dll
    Syntax
    public class MessageSerializerProviderOptions

    Constructors

    | Improve this Doc View Source

    MessageSerializerProviderOptions()

    Initializes a new instance of options using default values.

    Declaration
    public MessageSerializerProviderOptions()

    Properties

    | Improve this Doc View Source

    ChatEmbedDeserializer

    Deserializer of chat embeds that will be used by serializers.

    Declaration
    public IChatEmbedDeserializer ChatEmbedDeserializer { get; }
    Property Value
    Type Description
    IChatEmbedDeserializer
    | Improve this Doc View Source

    FallbackSerializer

    Fallback serializer that can be used if key has no mapped serializer.

    Declaration
    public IMessageSerializer FallbackSerializer { get; set; }
    Property Value
    Type Description
    IMessageSerializer
    Remarks

    Note that this serializer cannot be used for deserialization, and will be used only for serialization.

    Defaults to DefaultMessageSerializer<T>, where T is IWolfMessage.

    | Improve this Doc View Source

    Serializers

    Map for event type and assigned message serializer.

    Declaration
    public IDictionary<string, IMessageSerializer> Serializers { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IDictionary<System.String, IMessageSerializer>

    See Also

    MessageSerializerProvider