예제 #1
0
        /// <summary>
        /// The IdentityArrow is much like the IdentityArrow, but calls
        /// an Action &lt;S&gt; on every accepted message/object before
        /// forwarding it.
        /// </summary>
        /// <param name="ArrowSender">The sender of the messages/objects.</param>
        /// <param name="Recipient">A recipient of the processed messages.</param>
        /// <param name="Recipients">Further recipients of the processed messages.</param>
        public static IdentityArrow IdentityArrow(this IArrowSender ArrowSender, IArrowReceiver Recipient, params IArrowReceiver[] Recipients)
        {
            var _IdentityArrow = new IdentityArrow(Recipient, Recipients);

            ArrowSender.OnMessageAvailable += _IdentityArrow.ReceiveMessage;
            return(_IdentityArrow);
        }
예제 #2
0
        /// <summary>
        /// The IdentityArrow is much like the IdentityArrow, but calls
        /// an Action &lt;S&gt; on every accepted message/object before
        /// forwarding it.
        /// </summary>
        /// <param name="ArrowSender">The sender of the messages/objects.</param>
        public static IdentityArrow IdentityArrow(this IArrowSender ArrowSender)
        {
            var _IdentityArrow = new IdentityArrow();

            ArrowSender.OnMessageAvailable += _IdentityArrow.ReceiveMessage;
            return(_IdentityArrow);
        }
예제 #3
0
 /// <summary>
 /// The IdentityArrow is much like the IdentityArrow, but calls
 /// an Action &lt;S&gt; on every accepted message/object before
 /// forwarding it.
 /// </summary>
 /// <param name="ArrowSender">The sender of the messages/objects.</param>
 /// <param name="Recipient">A recipient of the processed messages.</param>
 /// <param name="Recipients">Further recipients of the processed messages.</param>
 public static IdentityArrow IdentityArrow(this IArrowSender ArrowSender, IArrowReceiver Recipient, params IArrowReceiver[] Recipients)
 {
     var _IdentityArrow = new IdentityArrow(Recipient, Recipients);
     ArrowSender.OnMessageAvailable += _IdentityArrow.ReceiveMessage;
     return _IdentityArrow;
 }
예제 #4
0
 /// <summary>
 /// The IdentityArrow is much like the IdentityArrow, but calls
 /// an Action &lt;S&gt; on every accepted message/object before
 /// forwarding it.
 /// </summary>
 /// <param name="ArrowSender">The sender of the messages/objects.</param>
 public static IdentityArrow IdentityArrow(this IArrowSender ArrowSender)
 {
     var _IdentityArrow = new IdentityArrow();
     ArrowSender.OnMessageAvailable += _IdentityArrow.ReceiveMessage;
     return _IdentityArrow;
 }