OK, scratch that bug I've been talking about. It works well, I just needed some coffee.
Tibor > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:alchemi- > [EMAIL PROTECTED] On Behalf Of Tibor Biro > Sent: Tuesday, February 07, 2006 3:25 PM > To: 'Luis Cota'; [email protected]; alchemi- > [EMAIL PROTECTED] > Subject: RE: [Alchemi-developers] How and when are ThreadStates set? > > Hi Luis, > > The app.Threads collection is representing the threads as they look like > to > the user when the threads are created. In order to see the data stored in > the database you should use the ThreadStorageView structure accessible > through the Manager object. > > Here's a sample: > > ThreadStorageView[] threads = > App.Manager.Admon_GetThreadList(App.Credentials, App.Id); > > foreach (ThreadStorageView thread in threads) > { > Console.WriteLine("{0} = {1} - {2}, {3}, {4}", > thread.ThreadId, > thread.TimeStartedSet ? thread.TimeStarted.ToString() : "Not > started", > thread.TimeFinishedSet ? thread.TimeFinished.ToString() : > "Not finished", > thread.State, > thread.ExecutorId > ); > } > > While playing with this I noticed that the Time Started and Finished are > not > populated properly even if the data is in the database. I put in a bug > report with this, it should be fixed soon. > > Regards, > Tibor > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ alchemi-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/alchemi-users
