예제 #1
0
 /// <summary>
 /// Given a command a reader will be executed against it. Note the command will be
 /// automatically disposed of after the query has finished or been cancelled.
 /// </summary>
 /// <param name="command"></param>
 /// <param name="behaviour"></param>
 public void ExecuteReader(SqlCommand command, CommandBehavior behaviour)
 {
     CancelQuery();
     _listControl.Items.Clear();
     _initialQuery = true;
     _queryJob     = new QueryJob(command, behaviour);
 }
예제 #2
0
 public BlackboardDataQuery(ComponentTypeSet set, Func <IEnumerable <ComponentType>, EntityQuery> createEntityQuery)
 {
     Set      = set;
     QueryJob = createEntityQuery(Set
                                  .Append(ComponentType.ReadOnly <BlackboardDataQuery>())
                                  .Append(ComponentType.ReadOnly <NodeBlobRef>())
                                  .Append(ComponentType.Exclude <RunOnMainThreadTag>())
                                  .Append(ComponentType.Exclude <ForceRunOnMainThreadTag>())
                                  );
     QueryMainThread = createEntityQuery(Set
                                         .Append(ComponentType.ReadOnly <BlackboardDataQuery>())
                                         .Append(ComponentType.ReadOnly <NodeBlobRef>())
                                         .Append(ComponentType.ReadOnly <RunOnMainThreadTag>())
                                         .Append(ComponentType.Exclude <ForceRunOnJobTag>())
                                         );
     QueryJob.SetSharedComponentFilter(this);
     QueryMainThread.SetSharedComponentFilter(this);
 }