Esempio n. 1
0
        /// <summary>
        /// Adds a custom error.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <param name="args">The arguments.</param>
        public void AddCustomError(string message, params object[] args)
        {
            Action batch = () =>
            {
                var task = new CustomErrorTask(message, args);

                this.Tasks.Add(task);
            };

            this.BatchAction(ErrorListAction.AddCustom, null, batch);
        }
        /// <summary>
        /// Adds a custom error.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <param name="args">The arguments.</param>
        public void AddCustomError(string message, params object[] args)
        {
            Action batch = () =>
            {
                var task = new CustomErrorTask(message, args);

                this.Tasks.Add(task);
            };

            this.BatchAction(ErrorListAction.AddCustom, null, batch);
        }