C# Class 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.
Inheritance: Akka.Serialization.Serializer
Datei anzeigen Open project: rogeralsing/akka.net Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

DaemonMsgCreateSerializer() public method

Initializes a new instance of the DaemonMsgCreateSerializer class.
public DaemonMsgCreateSerializer ( ExtendedActorSystem system ) : System
system ExtendedActorSystem The actor system to associate with this serializer.
return System

FromBinary() public method

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
return object

ToBinary() public method

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
return byte[]