Akka.Cluster.Tools.PublishSubscribe.Serialization.DistributedPubSubMessageSerializer.FromBinary C# (CSharp) Method

FromBinary() public method

public FromBinary ( byte bytes, string manifestString ) : object
bytes byte
manifestString string
return object
        public override object FromBinary(byte[] bytes, string manifestString)
        {
            Func<byte[], object> deserializer;
            if (_fromBinaryMap.TryGetValue(manifestString, out deserializer))
            {
                return deserializer(bytes);
            }
            else
                throw new ArgumentException(string.Format("Unimplemented deserialization of message with manifest [{0}] in serializer {1}", manifestString, GetType()));
        }