示例#1
0
        // Token: 0x060001CB RID: 459 RVA: 0x0000BAF0 File Offset: 0x00009CF0
        internal bool Enqueue(AmDbOperation opr)
        {
            bool result = false;

            lock (this.m_locker)
            {
                if (this.IsEnabled)
                {
                    AmDatabaseOperationQueue operationQueueByGuid = this.GetOperationQueueByGuid(opr.Database.Guid, true);
                    result = operationQueueByGuid.Add(opr, false);
                }
                else
                {
                    opr.Cancel();
                }
            }
            return(result);
        }
示例#2
0
        // Token: 0x060001CC RID: 460 RVA: 0x0000BB5C File Offset: 0x00009D5C
        internal bool Enqueue(Guid dbGuid, List <AmDbOperation> oprList, bool checkIfQueueIsIdle)
        {
            bool result = false;

            lock (this.m_locker)
            {
                if (this.IsEnabled)
                {
                    AmDatabaseOperationQueue operationQueueByGuid = this.GetOperationQueueByGuid(dbGuid, true);
                    result = operationQueueByGuid.Add(oprList, checkIfQueueIsIdle);
                }
                else
                {
                    foreach (AmDbOperation amDbOperation in oprList)
                    {
                        amDbOperation.Cancel();
                    }
                }
            }
            return(result);
        }