Taskling.SqlServer.Tokens.CriticalSections.CriticalSectionState.HasQueuedExecutions C# (CSharp) Method

HasQueuedExecutions() public method

public HasQueuedExecutions ( ) : bool
return bool
        public bool HasQueuedExecutions()
        {
            return _queue != null && _queue.Any();
        }

Usage Example

        private List <string> GetActiveTaskExecutionIds(CriticalSectionState csState)
        {
            var taskExecutionIds = new List <string>();

            if (!HasEmptyGranteeValue(csState))
            {
                taskExecutionIds.Add(csState.GrantedToExecution);
            }

            if (csState.HasQueuedExecutions())
            {
                taskExecutionIds.AddRange(csState.GetQueue().Select(x => x.TaskExecutionId));
            }

            return(taskExecutionIds);
        }
All Usage Examples Of Taskling.SqlServer.Tokens.CriticalSections.CriticalSectionState::HasQueuedExecutions