Esempio n. 1
0
        public static StatusHandle GetNewStatusHandle()
        {
            var handle = new StatusHandle();

            StatusDictionary.TryAdd(handle, handle);
            StatusText = $"Number of active jobs: {StatusDictionary.Count}";
            return(handle);
        }
Esempio n. 2
0
 protected void DisposeHandle(StatusHandle handle)
 {
     StatusDictionary.TryRemove(handle, out _);
     StatusText = StatusDictionary.Count > 0 ? $"Number of active jobs: {StatusDictionary.Count}" : "";
 }