Exemplo n.º 1
0
        internal static void Serialize(object obj, BinaryTokenStreamWriter stream, Type expected)
        {
            var envelope = (RequestEnvelope)obj;

            SerializationManager.SerializeInner(envelope.Target, stream, typeof(ActorPath));
            SerializationManager.SerializeInner(MessageEnvelope.Serializer(envelope.Message), stream, typeof(byte[]));
        }
Exemplo n.º 2
0
        internal static void Serialize(object obj, BinaryTokenStreamWriter stream, Type t)
        {
            var envelope = (NotificationEnvelope)obj;

            SerializationManager.SerializeInner(envelope.Sender, stream, typeof(ActorPath));
            SerializationManager.SerializeInner(MessageEnvelope.Serializer(envelope.Message), stream, typeof(byte[]));
        }