Exemple #1
0
        /// <summary>
        /// Invoke any progress change
        /// </summary>
        /// <param name="source"></param>
        /// <param name="totalValue"></param>
        /// <param name="currentValue"></param>
        /// <param name="state"></param>
        /// <param name="message"></param>
        public static void InvokeAnyProgress(this ILogging source, double totalValue = 0, double currentValue = 0, string state = "", string message = "")
        {
            var prog = new ProgressEventArgs(totalValue, currentValue, state, message);

            source?.InvokeProgress(prog);
            OnAnyProgress?.Invoke(source, prog);
        }