Example #1
0
        /// <summary>
        /// The SkipArrow simply sends the incoming message to the recipients
        /// without any processing, but skips the first n messages.
        /// </summary>
        /// <param name="ArrowSender">The sender of the messages/objects.</param>
        /// <param name="NumberOfMessagesToSkip">The number of messages to skip.</param>
        /// <param name="Recipient">A recipient of the processed messages.</param>
        /// <param name="Recipients">Further recipients of the processed messages.</param>
        public static SkipArrow SkipArrow(this IArrowSender ArrowSender, UInt32 NumberOfMessagesToSkip, IArrowReceiver Recipient, params IArrowReceiver[] Recipients)
        {
            var _SkipArrow = new SkipArrow(NumberOfMessagesToSkip, Recipient, Recipients);

            ArrowSender.OnMessageAvailable += _SkipArrow.ReceiveMessage;
            return(_SkipArrow);
        }
Example #2
0
        /// <summary>
        /// The SkipArrow simply sends the incoming message to the recipients
        /// without any processing, but skips the first n messages.
        /// </summary>
        /// <param name="ArrowSender">The sender of the messages/objects.</param>
        /// <param name="NumberOfMessagesToSkip">The number of messages to skip.</param>
        public static SkipArrow SkipArrow(this IArrowSender ArrowSender, UInt32 NumberOfMessagesToSkip)
        {
            var _SkipArrow = new SkipArrow(NumberOfMessagesToSkip);

            ArrowSender.OnMessageAvailable += _SkipArrow.ReceiveMessage;
            return(_SkipArrow);
        }
Example #3
0
 /// <summary>
 /// The SkipArrow simply sends the incoming message to the recipients
 /// without any processing, but skips the first n messages.
 /// </summary>
 /// <param name="ArrowSender">The sender of the messages/objects.</param>
 /// <param name="NumberOfMessagesToSkip">The number of messages to skip.</param>
 /// <param name="Recipient">A recipient of the processed messages.</param>
 /// <param name="Recipients">Further recipients of the processed messages.</param>
 public static SkipArrow SkipArrow(this IArrowSender ArrowSender, UInt32 NumberOfMessagesToSkip, IArrowReceiver Recipient, params IArrowReceiver[] Recipients)
 {
     var _SkipArrow = new SkipArrow(NumberOfMessagesToSkip, Recipient, Recipients);
     ArrowSender.OnMessageAvailable += _SkipArrow.ReceiveMessage;
     return _SkipArrow;
 }
Example #4
0
 /// <summary>
 /// The SkipArrow simply sends the incoming message to the recipients
 /// without any processing, but skips the first n messages.
 /// </summary>
 /// <param name="ArrowSender">The sender of the messages/objects.</param>
 /// <param name="NumberOfMessagesToSkip">The number of messages to skip.</param>
 public static SkipArrow SkipArrow(this IArrowSender ArrowSender, UInt32 NumberOfMessagesToSkip)
 {
     var _SkipArrow = new SkipArrow(NumberOfMessagesToSkip);
     ArrowSender.OnMessageAvailable += _SkipArrow.ReceiveMessage;
     return _SkipArrow;
 }