This is a migrated thread and some comments may be shown as answers.

Using RadDiagnostics in ScheduledTaskAgent

3 Answers 30 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
coldacid
Top achievements
Rank 1
coldacid asked on 21 Sep 2012, 09:00 PM
Has anyone tried this? Is it possible?

I know that you can't display UI from a STA, but I can at least use the ExceptionOccured event to capture the data to send the next time a user runs the application. However, I don't know if it's possible to initialize ScheduledTaskAgent and therefore RadDiagnostics from within my agent.

3 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 24 Sep 2012, 08:38 AM
Hi Chris,

I'm not sure if I understand correctly what you want to achieve. If I understand correctly you want to initialize RadDiagnostics in a ScheduledTaskAgent. However, RadDiagnostics is an application tool and initializing it in an agent while no application is running is not the usual approach for using this tool. Please elaborate a bit more about what exactly you want to achieve, so we can assist you further.

I'm looking forward to your reply.

Kind regards,
Todor
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

0
coldacid
Top achievements
Rank 1
answered on 24 Sep 2012, 08:33 PM
That's exactly it. I'd like to be able to capture any exceptions thrown in the agent so they can be reported the next time the user runs the application normally.
0
Todor
Telerik team
answered on 25 Sep 2012, 08:34 AM
Hello Chris,

RadDiagnostics is not intended for such use and initializing it in a ScheduledTaskAgent is not currently possible. You can create your own error handling logic by creating an event handler for the UnhandledException event, for example. There you can choose what data you want to keep and what to do with it.

If you have other questions, don't hesitate to write us back.

Greetings,
Todor
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

Tags
General Discussions
Asked by
coldacid
Top achievements
Rank 1
Answers by
Todor
Telerik team
coldacid
Top achievements
Rank 1
Share this question
or