Example #1
0
        /// <summary>
        /// Clones the current instance of <see cref="ProcessRunner"/>.
        /// </summary>
        /// <returns>Cloned instance of the <see cref="ProcessRunner"/>.</returns>
        public ProcessRunner Clone()
        {
            if (disposed)
            {
                throw new ObjectDisposedException(nameof(ProcessRunner));
            }

            return(new ProcessRunner(processCreator.Clone(), messageFormatter.GetCopy()));
        }