Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8515319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:06:54+00:00 2026-06-11T05:06:54+00:00

I have a small batch program whose job is to call the SSRS 2008

  • 0

I have a small batch program whose job is to call the SSRS 2008 web service with a variety of parameters and route the resulting reports. (For various reasons, SSRS subscriptions wouldn’t work in this environment.)

Currently it uses the Parallel class to run multiple reports at one time and take advantage of the report server’s ability to handle multiple simultaneous requests. But I’ve read (in the comments here) that this isn’t the way to go: that since what we’re spreading across multiple threads on the client is I/O rather than processing load, the thing to do would be to make async calls to the web service and wait for the results.

VS 2010 generated a web service client for me that includes xxxxAsync methods and xxxxCompleted events. It’s relatively straightforward to set up a couple of methods to call, one that calls the web service Render2Async method and the other which handles Render2AsyncCompleted.

But now I’m in unfamiliar territory. First, this breaks all my tests. How does one test an async web service: by writing async tests? Does my app need to fire off its own EventCompleted message so that the test can know that the app is finished with a given report and the test can continue?

Second, how can I prevent the app from terminating prematurely? I’ve read about WaitHandle and its methods, but WaitHandle.WaitAll assumes that you have access to the wait handles from all your tasks, and none are exposed by the web service client. The Render2Async method doesn’t have a return value.

Many thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T05:06:56+00:00Added an answer on June 11, 2026 at 5:06 am

    NUnit supports the delayed constraint ‘After’ that allows you to poll on a test periodically in cases like this. Examples of NUnit After here and here. It is not technically comprehensive as it is a simplistic polling solution, but it is easy to use and would work in some simple cases.

    Microsoft’s silverlight test framework has a bit more comprehensive support using the EnqueueXXX methods as shown in the articles here and here.

    Finally, “manual” way of unit test using ManualResetEvent is also shown in this article.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a small program that batch handles files. These files use a map
I have small web app that generate PDF files as a report. I'm trying
I have small class called 'Call' and I need to store these calls into
Background I have a Spring batch program that reads a file (example file I
I have a very small batch script which is extracting a quite amount of
I have a small C# program to modify a xml file which is located
I have written a rather small batch file that does some date calculations for
I have some batch data-manipulation scripts which support a small business website. The scripts
I have an Azure web app that uses a startup task batch file (addtask.cmd)
I have written a small batch file that copies an exe from solution to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.