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.
Inherited Members
Namespace: Akka.Serialization
Assembly: Akka.dll
Syntax
public class NewtonSoftJsonSerializer : Serializer
Constructors
| Improve this Doc View SourceNewtonSoftJsonSerializer(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. |
NewtonSoftJsonSerializer(ExtendedActorSystem, Config)
Declaration
public NewtonSoftJsonSerializer(ExtendedActorSystem system, Config config)
Parameters
Type | Name | Description |
---|---|---|
ExtendedActorSystem | system | |
Config | config |
NewtonSoftJsonSerializer(ExtendedActorSystem, NewtonSoftJsonSerializerSettings)
Declaration
public NewtonSoftJsonSerializer(ExtendedActorSystem system, NewtonSoftJsonSerializerSettings settings)
Parameters
Type | Name | Description |
---|---|---|
ExtendedActorSystem | system | |
NewtonSoftJsonSerializerSettings | settings |
Properties
| Improve this Doc View SourceIncludeManifest
Returns whether this serializer needs a manifest in the fromBinary method
Declaration
public override bool IncludeManifest { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceSerializer
TBD
Declaration
public object Serializer { get; }
Property Value
Type | Description |
---|---|
Object |
Settings
TBD
Declaration
public JsonSerializerSettings Settings { get; }
Property Value
Type | Description |
---|---|
Newtonsoft.Json.JsonSerializerSettings |
Methods
| Improve this Doc View SourceFromBinary(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
| Improve this Doc View SourceToBinary(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 |