| ClusterSingletonMessageSerializerToBinary Method |
Serializes the given object into a byte array
Namespace:
Akka.Cluster.Tools.Singleton.Serialization
Assembly:
Akka.Cluster.Tools (in Akka.Cluster.Tools.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax public override byte[] ToBinary(
Object obj
)
abstract ToBinary :
obj : Object -> byte[]
override ToBinary :
obj : Object -> byte[]
Parameters
- obj
- Type: SystemObject
The object to serialize
Return Value
Type:
ByteA byte array containing the serialized object
Exceptions Exception | Condition |
---|
ArgumentException |
This exception is thrown when the specified obj is of an unknown type.
Acceptable values include: HandOverToMe | HandOverInProgress | HandOverDone | TakeOverFromMe |
See Also