示例#1
0
        public ETTask <List <ComponentWithId> > GetLSSJson(string collectionName, string LSS)
        {
            ETTaskCompletionSource <List <ComponentWithId> > tcs = new ETTaskCompletionSource <List <ComponentWithId> >();

            DBQueryLSSJsonTask dBQueryWhereJsonTask = ComponentFactory.Create <DBQueryLSSJsonTask, string, string, ETTaskCompletionSource <List <ComponentWithId> > >(collectionName, LSS, tcs);

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

            return(tcs.Task);
        }
示例#2
0
 public override void Awake(DBQueryLSSJsonTask self, string collectionName, string lss, ETTaskCompletionSource <List <ComponentWithId> > tcs)
 {
     self.CollectionName = collectionName;
     self.Tcs            = tcs;
     self.LSS            = lss;
 }