Exemple #1
0
        /// <summary>
        /// Sets the correct next component.
        /// </summary>
        /// <param name="error">Component incoming.</param>
        /// <param name="atomic">Target chain.</param>
        /// <returns>Returns an instance of the <see cref="IChain{T}"/> interface.</returns>
        private IChain <Routable> GetFinal(IChain <Routable> error, IChain <Routable> atomic)
        {
            if (atomic != null && error != null)
            {
                atomic.SetNext(error);
            }
            else if (atomic == null && error != null)
            {
                atomic = error;
            }

            return(atomic);
        }