The asynchronous tag has no wiki summary.
0
votes
0answers
17 views
Stream data from DataReader to the OutputStream in ASP.NET Web API [migrated]
Consider the following code from SomeApiController:
public IEnumerable<string[]> Get()
{
using (var conn = new SqlConnection(asyncConnString))
using (var cmd = conn.CreateCommand())
...
1
vote
0answers
34 views
Datagrid not refreshing correctly with Async Ping VB .Net
I have an application coded in VB.NET that has a bunch of servers in a DataGridView and does a continuous asynchronous ping. If all the servers are up it refreshes great, but if one goes down and ...
-1
votes
0answers
66 views
ping multiple IP's from Datagridview C# [closed]
I need to make a program that uses Asynchronous pings to cycle through a datagridview that has a list of server names or IP Addresses and ping them at the same time. and return the values to the ...
2
votes
1answer
153 views
Asynchronous Programming Code Review
I did a load test for an ASP.NET MVC application. It was basically for 2 different pages which are doing the same thing but one was synchronous and the other was asynchronous. The result was shocking. ...
2
votes
0answers
200 views
MVC Async Action Invoking Workflow
I've just started working with Workflow (WF4) and have been playing with an idea of using it in MVC3.0 controller actions to see if it improves the maintainability of complex actions; also potentially ...
2
votes
1answer
394 views
Old-way of asynchronous programming in ASP.NET MVC 3
On ASP.NET MVC, I try to write an async Controller action with the old asynchronous programming model (actually, it is the current one, new one is still a CTP).
Here, I am trying to run 4 operations ...
2
votes
2answers
420 views
Is this implementation of an Asynchronous TCP/UDP Server correct
I am trying to implement a TCP/UDP server so all I have to do is something like this:
var server = new Server(Type.UDP, "127.0.0.1", 8888);
server.OnDataRecieved += Datahandler;
server.Start();
I ...
1
vote
1answer
617 views
Loading your Javascript files asynchronous, jQuery defered vs native javascript
I need to get some script from the different social networking site, and I want to cache them. Not I want the function to be asynchronous, and non-blocking.
I have settled with a script, but I am not ...
2
votes
1answer
213 views
Async, callbacks, and closures — am I doing it right?
After having spent a month or two trying to learn JavaScript, especially functional programming, async, and closures, I finally get it. But I don't know if I'm writing elegant code... Specifically, ...
0
votes
1answer
122 views
Is this a safe/correct way to make a python LogHandler asynchronous?
I'm using some slow-ish emit() methods in Python (2.7) logging (email, http POST, etc.) and having them done synchronously in the calling thread is delaying web requests. I put together this function ...
1
vote
0answers
92 views
Using Delegates and BeginInvoke with .NET 2.0 WebServices
I'm attempting to implement a simple long-polling/comet/reverse AJAX solution, and came across the concept of delegates, specifically with the BeginInvoke and EndInvoke methods. I've built a Web ...
2
votes
1answer
303 views
Asynchronous task runner: How can it be improved?
This is my personal project. This class is responsible for running jobs asynchronously that are registered using dependency injection.
All improvement suggestions are welcome. It can be as small as ...
14
votes
1answer
3k views
What is better for Lazy-Loading Navigation Properties of detached Self-Tracking Entities through a WCF service?
I have a WCF client which passes Self-Tracking Entities to a WPF application built with MVVM. The application itself has a dynamic interface. Users can select which objects they want visible in their ...
3
votes
4answers
678 views
Asynchronous website monitor
I have a class which is responsible for checking whether a website is up or down. I've made it to run asynchronously, but I would like critique if this is a good/bad way or if there is another better ...
7
votes
2answers
445 views
Am I overlooking anything with this asynchronous read/write loop?
Here's my code:
public static void CopyStream(Stream input, Stream output)
{
var size = 8192;
var inBuffer = new byte[size];
var outBuffer = new byte[size];
IAsyncResult writeAsync ...