bool IActor.OnMessageRecieved <T>(T msg) { if (!(msg as IActorMessage).Message.GetType().Name.Equals("Byte[]")) { throw new SendBytesCanOnlySendValueTypeByteArrayMessagesException("ValueTypeMessage<byte>"); } DirectoryQueueBaseOperator <byte[]> .SerializeAndSend(msg, queue); return(true); }
bool IActor.OnMessageRecieved <T>(T msg) { if (!(msg as IActorMessage).Message.GetType().Name.Equals("String")) { throw new SendStringActorCanOnlySendStringMessagesException(); } DirectoryQueueBaseOperator <string> .SerializeAndSend(msg, queue, (string)msg.Message); return(true); }
bool IActor.OnMessageRecieved <T>(T msg) { DirectoryQueueBaseOperator <IActorMessage> .SerializeAndSend(msg, queue); return(true); }