C# Класс Akka.Remote.Serialization.DaemonMsgCreateSerializer

This is a special Serializer that serializes and deserializes DaemonMsgCreate only. Serialization of contained RouterConfig, Config, and Scope is done with the configured serializer for those classes.
Наследование: Akka.Serialization.Serializer
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DaemonMsgCreateSerializer ( ExtendedActorSystem system ) : System

Initializes a new instance of the DaemonMsgCreateSerializer class.

FromBinary ( byte bytes, Type type ) : object

Deserializes a byte array into an object of type type.

ToBinary ( object obj ) : byte[]

Serializes the given object into a byte array

Приватные методы

Метод Описание
Deserialize ( ByteString bytes, Type type ) : object
DeserializeActorRef ( ActorRefData actorRefData ) : IActorRef
GetArgs ( DaemonMsgCreateData proto ) : IEnumerable
GetDeploy ( DeployData protoDeploy ) : Akka.Actor.Deploy
GetDeployData ( Akka.Actor.Deploy deploy ) : DeployData
GetPropsData ( Props props ) : PropsData
Serialize ( object obj ) : ByteString
SerializeActorRef ( IActorRef @ref ) : ActorRefData

Описание методов

DaemonMsgCreateSerializer() публичный Метод

Initializes a new instance of the DaemonMsgCreateSerializer class.
public DaemonMsgCreateSerializer ( ExtendedActorSystem system ) : System
system ExtendedActorSystem The actor system to associate with this serializer.
Результат System

FromBinary() публичный Метод

Deserializes a byte array into an object of type type.
/// Could not find type on the remote system. /// Ensure that the remote system has an assembly that contains the type in its assembly search path. ///
public FromBinary ( byte bytes, Type type ) : object
bytes byte The array containing the serialized object
type System.Type The type of object contained in the array
Результат object

ToBinary() публичный Метод

Serializes the given object into a byte array
Can't serialize a non- message using
public ToBinary ( object obj ) : byte[]
obj object The object to serialize
Результат byte[]