asynchronous

Options for Async Silverlight-to-WPF communication?

What's the fastest communication model for a Silverlight component communicating with a WPF component? That is, at the very least I'd like to consume an event from a Silverlight component in a WPF component. I understand you can use WCF to build a bridge I understand you can use Javascript to bridge from WPF -> Silverlight (and I hav...

Understanding Async Methods in Web Service.

Hello. I consume Java Service in my .NET appliaction. I have one question: When service serialize in .NET he also create Async methods. For example for GetPersons() method service create GetPersonsAsync() which is return void. In which cases I can use this Async methods and what the destination of these methods. ...

Pattern for limiting number of simultaneous asynchronous calls

I need to retrieve multiple objects from an external system. The external system supports multiple simultaneous requests (i.e. threads), but it is possible to flood the external system - therefore I want to be able to retrieve multiple objects asynchronously, but I want to be able to throttle the number of simultaneous async requests. i....

[C#] How to consume web service adheres to the Event-based Asynchronous Pattern?

I am following the example from http://msdn.microsoft.com/en-us/library/8wy069k1.aspx to consume a web service implemented (by 3rd party) using the Event-based Asynchronous Pattern. However, my program needs to do multiple calls to the DoStuffAsync() hence will get back as many DoStuffCompleted. I chose the overload which takes an ex...

How does one implement an asynchronous http-post request in android?

I would like to implement the following simple pattern in an android app: Activity A starts activity B In activity B the user fills out a simple form F, then hits submit Activity B then starts an AsyncTask C that posts F to a url, and immediately returns to Activity A Back in activity A, the user continues with business as usual while ...

Synchronizing Asynchronous request handlers in Silverlight environment

For our senior design project my group is making a Silverlight application that utilizes graph theory concepts and stores the data in a database on the back end. We have a situation where we add a link between two nodes in the graph and upon doing so we run analysis to re-categorize our clusters of nodes. The problem is that this re-cate...

Which way is preferred when doing asynchronous WCF calls?

When invoking a WCF service asynchronous there seems to be two ways it can be done. 1. WcfClient _client = new WcfClient(); public void One() { _client.BegindoSearch("input", ResultOne, null); } private void ResultOne(IAsyncResult ar) { string data = _client.EnddoSearch(ar); } 2. public void Two() { WcfClient client...

Write asynchronously to file in perl

Basically I would like to: Read a large amount of data from the network into an array into memory. Asynchronously write this array data, running it thru bzip2 before it hits the disk. repeat.. Is this possible? If this is possible, I know that I will have to somehow read the next pass of data into a different array as the AIO docs s...

Control.EndInvoke resets call stack for exception

I don't do a lot of Windows GUI programming, so this may all be common knowledge to people more familiar with WinForms than I am. Unfortunately I have not been able to find any resources to explain the issue, I encountered today during debugging. If we call EndInvoke on an async delegate. We will get any exception thrown during executi...

asynchronous vs non-blocking

Hi all, What is the difference between asynchronous and non-blocking calls? Also between blocking and synchronous calls(with examples please)? Thanks. ...

What happens to a transaction when App Pool recycles or the worker process is terminated forcefully?

The architecture of the application is straight forward. There is a web application which maintain account holder data. This data is processed and the status of account holders is updated based on number of business rules. This process is initiated using a button on the page and is a long running process (say 15 mins). A component is dev...

The correct way to Fire-and-Forget an asynchronous delegate

Consider me rusty on the subject of asynchronous delegates. If I want to call a method asynchronously, in a fire-and-forget style, is this an appropriate way to do it? Action action = DoSomething; action.BeginInvoke(action.EndInvoke, null); The DoSomething() method catches all exceptions and deals with them internally. Is the call ...

C# getting the results from an asynchronous call

I have an API that I'm working with and it has limited documentation. I have been told that some of the methods that it executes are called asynchronously. How can I get the result of these asynchronous calls. Note that I am not doing anything special to call them, the API handles the asynchronous part. But I can't seem to get a "reply...

Android: download large file

I'm trying to download large file from Internet (>20Mb) private class DownloadTask extends AsyncTask<DatabaseInfo, Integer, String> { private DatabaseInfo info; protected String doInBackground(DatabaseInfo... dbInfo) { int count; info = dbInfo[0]; try { URL url = new URL(dbInfo[0].dbPath)...

How to make Django work with unsupported MySQL drivers such as gevent-mysql or Concurrence's MySQL driver?

I'm interested in running Django on an async framework like Concurrence or gevent. Both frameworks come with its own async MySQL driver. Problem is Django only officially supports MySQLdb. What do I need to do to make Django work with the MySQL drivers that come with gevent or Concurrence? Is there a step-by-step guide somewhere that ...

C# asynchronous event procedure does not fire

I am working with an API that has some methods that are called asynchronously with an event procedure upon completion. I can execute the methods, but the event procedure does not seem to fire. NOTE: I posted a similar question yesterday but didn't post the code until much later. I'm hoping someone can spot where I am going wrong public ...

Implementing an interface using an asynchronous WCF service?

Hello, I am trying to figure out if it is possible to implement a .NET interface, where the interface method has to return something and you are implementing that particular interface method with an asynchronous WCF service? Hopefully you should already see the issue I am encountering. Here is the interface: public interface IDa...

Asynchronous database update in Django?

I have a big form on my site. When the users fill it out and submit it, most of the data just gets dumped to the database, and then they get redirected to a new page. However, I'd also like to use the data to query another site, and then parse the results. That might take a bit longer. It's not essential that the user sees these results ...

Need help regarding Async and fsi

I'd like to write some code that runs a sequence of F# scripts (.fsx). The thing is that I could have literally hundreds of scripts and if I do that: let shellExecute program args = let startInfo = new ProcessStartInfo() do startInfo.FileName <- program do startInfo.Arguments <- args do startInfo.UseShellExe...

Differences in ansychronous VB.NET and C#???

So I've been posting this week for help with an API that has asynchronous calls. You can view the CODE here: http://stackoverflow.com/questions/2638920/c-asynchronous-event-procedure-does-not-fire With a little more digging, I found out that the API is written in VB.NET and I created a VB.NET example and guess what . . . the asynchronou...