Ejemplo n.º 1
0
        public override TBlock LinkTo(ITargetBlock <TInMsg> target, IdasDataflowLinkOptions linkOptions = null)
        {
            if (linkOptions == null)
            {
                linkOptions = new IdasDataflowLinkOptions();
            }

            if (!linkOptions.WaitForTargetCompletion.HasValue)
            {
                linkOptions.WaitForTargetCompletion = false;
            }

            return(base.LinkTo(target, linkOptions));
        }
        public virtual TBlock LinkTo(ITargetBlock <TOutputMsg> target, IdasDataflowLinkOptions linkOptions = null)
        {
            Network.Link(this, target, linkOptions);

            return((TBlock)(object)this);
        }