Advertisement

05.09.2008 at 02:36AM PDT, ID: 23388759
[x]
Attachment Details

Multi-threading a C# Class Library

Asked by XPUSR in C# Programming Language

Tags: C#

Hi Experts,

I have implemented a simple C# class library called "Business.dll". This class exposes a method called GetStatistics(int statisticID) which returns a string of XML data. I have registered the dll in my Front End Applicaction but once the GetStatistics method is called it actually takes quite some time to complete the process of generating the data.

I would like to add a facility whereby I can provide feedback to the client(in this case the Application) from the dll as I complete the GetStatistics process e.g. once 10% of the work is complete I would like the application to somehow be informed that 10% of the work is complete and I would also like the ability to allow the Application to Abort the calcuation.

Can someone please instruct me on how to go about this? I assume I have to enable some form of Callback in the .dll?

Thanks,
j.Start Free Trial
[+][-]05.09.2008 at 04:44AM PDT, ID: 21531807

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.09.2008 at 05:27AM PDT, ID: 21532039

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.09.2008 at 05:38AM PDT, ID: 21532106

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: C# Programming Language
Tags: C#
Sign Up Now!
Solution Provided By: AndrewVos
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.09.2008 at 07:56AM PDT, ID: 21533485

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.09.2008 at 09:06AM PDT, ID: 21534252

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.10.2008 at 08:07AM PDT, ID: 21539293

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.10.2008 at 08:13AM PDT, ID: 21539326

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.10.2008 at 08:16AM PDT, ID: 21539338

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628