Ejemplo n.º 1
0
        /// <summary>
        ///     See <see cref="TransformerBase{TProduce,TConsume}.ProcessConsume(TConsume)" />.
        /// </summary>
        protected override void ProcessConsume(TConsume consume)
        {
            var results = _transform(consume);

            foreach (var result in results)
            {
                Produce.TryAdd(result);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     See <see cref="TransformerBase{TProduce,TConsume}.ProcessConsume(TConsume)" />.
        /// </summary>
        protected override void ProcessConsume(TConsume consume)
        {
            var result = _transform(consume);

            Produce.TryAdd(result);
        }