Search Results for

    Show / Hide Table of Contents

    Class NewtonSoftJsonSerializer

    This is a special Serializer that serializes and deserializes javascript objects only. These objects need to be in the JavaScript Object Notation (JSON) format.

    Inheritance
    object
    Serializer
    NewtonSoftJsonSerializer
    Inherited Members
    Serializer.system
    Serializer.Identifier
    Serializer.ToBinaryWithAddress(Address, object)
    Serializer.FromBinary<T>(byte[])
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Serialization
    Assembly: Akka.dll
    Syntax
    public class NewtonSoftJsonSerializer : Serializer

    Constructors

    | Edit this page View Source

    NewtonSoftJsonSerializer(ExtendedActorSystem)

    Initializes a new instance of the NewtonSoftJsonSerializer class.

    Declaration
    public NewtonSoftJsonSerializer(ExtendedActorSystem system)
    Parameters
    Type Name Description
    ExtendedActorSystem system

    The actor system to associate with this serializer.

    | Edit this page View Source

    NewtonSoftJsonSerializer(ExtendedActorSystem, Config)

    Declaration
    public NewtonSoftJsonSerializer(ExtendedActorSystem system, Config config)
    Parameters
    Type Name Description
    ExtendedActorSystem system
    Config config
    | Edit this page View Source

    NewtonSoftJsonSerializer(ExtendedActorSystem, NewtonSoftJsonSerializerSettings)

    Declaration
    public NewtonSoftJsonSerializer(ExtendedActorSystem system, NewtonSoftJsonSerializerSettings settings)
    Parameters
    Type Name Description
    ExtendedActorSystem system
    NewtonSoftJsonSerializerSettings settings

    Properties

    | Edit this page View Source

    IncludeManifest

    Returns whether this serializer needs a manifest in the fromBinary method

    Declaration
    public override bool IncludeManifest { get; }
    Property Value
    Type Description
    bool
    Overrides
    Serializer.IncludeManifest
    | Edit this page View Source

    Serializer

    TBD

    Declaration
    public object Serializer { get; }
    Property Value
    Type Description
    object
    | Edit this page View Source

    Settings

    TBD

    Declaration
    public JsonSerializerSettings Settings { get; }
    Property Value
    Type Description
    JsonSerializerSettings

    Methods

    | Edit this page View Source

    FromBinary(byte[], Type)

    Deserializes a byte array into an object of type type.

    Declaration
    public override object FromBinary(byte[] bytes, Type type)
    Parameters
    Type Name Description
    byte[] bytes

    The array containing the serialized object

    Type type

    The type of object contained in the array

    Returns
    Type Description
    object

    The object contained in the array

    Overrides
    Serializer.FromBinary(byte[], Type)
    | Edit this page View Source

    ToBinary(object)

    Serializes the given object into a byte array

    Declaration
    public override byte[] ToBinary(object obj)
    Parameters
    Type Name Description
    object obj

    The object to serialize

    Returns
    Type Description
    byte[]

    A byte array containing the serialized object

    Overrides
    Serializer.ToBinary(object)

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET