Created
December 1, 2013 10:54
-
-
Save WaseemTheDream/7731973 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Wraps the message in a data packet and delegates to the data retrieval system. | |
/// This command processes all messages intended for the data retrieval system. | |
/// </summary> | |
/// <typeparam name="TMessage">The message type.</typeparam> | |
/// <returns>True upon success.</returns> | |
private VisitorCmd<Boolean, String, Object, ABrokeredMessageHost> DataRetrievalCmd<TMessage>() | |
{ | |
return delegate(ABrokeredMessageHost host, string idx, Object[] inps) | |
{ | |
TMessage message = host.message.GetBody<TMessage>(); | |
host.message.Complete(); | |
DataPacket<TMessage> packet = new DataPacket<TMessage>(message); | |
Retriever.ReceiveDataPacket(packet); | |
return true; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment