IMsgSource.cs 664 B

1234567891011121314151617
  1. namespace NetMQ.Core
  2. {
  3. /// <summary>
  4. /// Classes that implement IMsgSource are able to fetch a message, with the method: PullMsg.
  5. /// </summary>
  6. internal interface IMsgSource
  7. {
  8. /// <summary>
  9. /// Fetch a message.
  10. /// If successful - returns true and writes the message instance to the msg argument.
  11. /// If not successful - return false and write null to the msg argument.
  12. /// </summary>
  13. /// <param name="msg">the Msg to write the fetched message into</param>
  14. /// <returns>true if successful - and writes the message to the msg argument</returns>
  15. bool PullMsg(ref Msg msg);
  16. }
  17. }