Exemple #1
0
        bool IActor.OnMessageRecieved <T>(T msg)
        {
            if (!(msg as IActorMessage).Message.GetType().Name.Equals("Byte[]"))
            {
                throw new SendBytesStorageActorCanOnlySendValueTypeByteArrayMessagesException("ValueTypeMessage<byte>");
            }

            StorageQueueBaseOperator <byte[]> .SerializeAndSend(msg, queue);

            return(true);
        }
Exemple #2
0
        bool IActor.OnMessageRecieved <T>(T msg)
        {
            if (!(msg as IActorMessage).Message.GetType().Name.Equals("String"))
            {
                throw new SendStringActorCanOnlySendStringMessagesException();
            }

            StorageQueueBaseOperator <string> .SerializeAndSend(msg, queue, (string)msg.Message);

            return(true);
        }
Exemple #3
0
        bool IActor.OnMessageRecieved <T>(T msg)
        {
            StorageQueueBaseOperator <IActorMessage> .SerializeAndSend(msg, queue);

            return(true);
        }