Click or drag to resize
Akka.NETSerializer Class
A Serializer represents a bimap between an object and an array of bytes representing that object. Serializers are loaded using reflection during ActorSystem start-up, where two constructors are tried in order:
  • taking exactly one argument of type ExtendedActorSystem; this should be the preferred one because all reflective loading of classes during deserialization should use ExtendedActorSystem.dynamicAccess (see [[akka.actor.DynamicAccess]]), and
  • without arguments, which is only an option if the serializer does not load classes using reflection.
Be sure to always use the PropertyManager for loading classes! This is necessary to avoid strange match errors and inequalities which arise from different class loaders loading the same class.
Inheritance Hierarchy
SystemObject
  Akka.SerializationSerializer
    More...

Namespace:  Akka.Serialization
Assembly:  Akka (in Akka.dll) Version: 1.2.0.34 (1.2.0.34)
Syntax
public abstract class Serializer

The Serializer type exposes the following members.

Constructors
  NameDescription
Public methodSerializer
Initializes a new instance of the Serializer class.
Top
Properties
  NameDescription
Public propertyIdentifier
Completely unique value to identify this implementation of Serializer, used to optimize network traffic Values from 0 to 16 is reserved for Akka internal usage
Public propertyIncludeManifest
Returns whether this serializer needs a manifest in the fromBinary method
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFromBinary(Byte, Type)
Deserializes a byte array into an object of type type.
Public methodFromBinaryT(Byte)
Deserializes a byte array into an object.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToBinary
Serializes the given object into a byte array
Public methodToBinaryWithAddress
Serializes the given object into a byte array and uses the given address to decorate serialized ActorRef's
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected fieldsystem
The actor system to associate with this serializer.
Top
Extension Methods
See Also
Inheritance Hierarchy
SystemObject
  Akka.SerializationSerializer
    Akka.DistributedData.SerializationReplicatedDataSerializer
    Akka.DistributedData.SerializationReplicatorMessageSerializer
    Akka.FSharpSerializationExprSerializer
    Akka.Persistence.SerializationMessageSerializer
    Akka.Persistence.SerializationSnapshotSerializer
    Akka.Remote.SerializationDaemonMsgCreateSerializer
    Akka.Remote.SerializationMessageContainerSerializer
    Akka.Remote.SerializationProtobufSerializer
    Akka.SerializationByteArraySerializer
    Akka.SerializationHyperionSerializer
    Akka.SerializationJavaSerializer
    Akka.SerializationNewtonSoftJsonSerializer
    Akka.SerializationNullSerializer
    Akka.SerializationSerializerWithStringManifest
    Akka.SerializationWireSerializer