This project has moved. For the latest updates, please go here.

TaskService.FindTask() Method returns a single result

Jan 25, 2012 at 10:26 PM

Hello,

Two things I wanted to comment on:

1. If calling the FindTask() method, I would expect it to return a collection of results that matched the specified name (or ideally RegEx for consistency with the GetTasks() method). Instead, the FindTask() method returns only a single Task object.

2. Also, an extra overload on the FindTask() method would be nice -- make the searchAllFolders boolean value default to true.

Any thoughts on either of the above points?

Nice work on the library, by the way .. very helpful that I didn't have to write all of this.

Cheers,

Trevor Sullivan
http://twitter.com/pcgeek86
http://trevorsullivan.net 

Coordinator
Jan 26, 2012 at 5:15 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Mar 15, 2012 at 9:08 PM

Hi David,
           Above you have mentioned that FindAllTasks method is added in 1.7.2 version however I downloaded the latest version 1.8.1 but not able to find the method FindAllTasks. Could you please let me know how to use it.
 Dim ts As New TaskService
        Dim t As Task = ts.FindTask(tname, True)

Thanks in Advance

Mar 15, 2012 at 10:01 PM

Hello,

The FindAllTasks() method is an instance-level method on the TaskService object. You can find it in TaskService.cs if you browse the source control repository for version 1.8.1. See the link below, and search for the text "FindAllTasks".

http://taskscheduler.codeplex.com/SourceControl/changeset/view/75976#19442

Cheers,
Trevor Sullivan
http://trevorsullivan.net
http://twitter.com/pcgeek86 

Mar 16, 2012 at 6:11 AM

Hi Trevor,

          How can I use the same FindAllTasks or call FindAllTasks in vb.net language. I having issues accessing it or not sure on how to call FindAllTasks in VB.Net language. Thanks Trevor.

 

Thanks,

Debashish

Coordinator
Mar 16, 2012 at 5:38 PM

The following code lets you cycle through all tasks starting with 't'.

For Each task In ts.FindAllTasks(New System.Text.RegularExpressions.Regex("t.*"))
   'Do something with task
Next

Mar 16, 2012 at 6:07 PM

Thanks David..... I was using 1.7.1 i.e. why I was not able to see FindAllTasks method then I downloaded v 1.8.1 and it worked.

Thanks Davide gr8 work on the scheduler.....Keep it up

Mar 16, 2012 at 7:29 PM

Hi David,

            I am able to get all the required parameters except the start time..... How can I get start time? though I can get start date.

Coordinator
Mar 16, 2012 at 9:36 PM

Not sure what you mean by start time. The next time it will run?