Пример #1
0
        /// <summary>
        /// Provides a one-time, postprocessing functionality for the cmdlet.
        /// </summary>
        protected override void EndProcessing()
        {
            if (Aggregator != null)
            {
                if (Finalizer != null)
                {
                    accumulation.Value = Finalizer.InvokeWithContext(null, new List <PSVariable>
                    {
                        accumulation
                    }).First();
                }

                var name = GetChannelName();
                WriteObject($"#{id}:{name}");
                WriteObject(accumulation.Value);
            }
        }