Ejemplo n.º 1
0
        public ETTask <long> DeleteBatch(string collectionName, List <long> idList)
        {
            ETTaskCompletionSource <long> tcs = new ETTaskCompletionSource <long>();
            DBDeleteBatchTask             dbDeleteBatchTask = ComponentFactory.Create <DBDeleteBatchTask, List <long>, string, ETTaskCompletionSource <long> >(idList, collectionName, tcs);

            this.tasks[(int)((ulong)dbDeleteBatchTask.Id % taskCount)].Add(dbDeleteBatchTask);

            return(tcs.Task);
        }
Ejemplo n.º 2
0
 public override void Awake(DBDeleteBatchTask self, List <long> idList, string collectionName, ETTaskCompletionSource <long> tcs)
 {
     self.IdList         = idList;
     self.CollectionName = collectionName;
     self.Tcs            = tcs;
 }