Exemple #1
0
        //private object ProgressLock { get; set; } = new object();

        public static StatusWrapper NewStatus(string status)
        {
            var statusWrapper = new StatusWrapper
            {
                CurrentStatus = status,
            };

            StatusController.Display(statusWrapper);

            return(statusWrapper);
        }
Exemple #2
0
        public static StatusWrapper NewStatus(string status, long totalProgress)
        {
            var statusWrapper = new StatusWrapper
            {
                CurrentStatus   = status,
                CurrentProgress = 0,
                TotalProgress   = totalProgress,
            };

            StatusController.Start(statusWrapper);

            return(statusWrapper);
        }