Exemple #1
0
        public ETTask <long> GetCountJson(string collectionName, string json)
        {
            ETTaskCompletionSource <long> tcs = new ETTaskCompletionSource <long>();

            DBQueryCountJsonTask dBQueryWhereJsonTask = ComponentFactory.Create <DBQueryCountJsonTask, string, string, ETTaskCompletionSource <long> >(collectionName, json, tcs);

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

            return(tcs.Task);
        }
 public override void Awake(DBQueryCountJsonTask self, string collectionName, string json, ETTaskCompletionSource <long> tcs)
 {
     self.CollectionName = collectionName;
     self.Json           = json;
     self.Tcs            = tcs;
 }