IHttpAsyncHandler interface allows you to serve content asynchronously from the HTTP handler. It defines the contract that HTTP asynchronous handler objects must implement.
Questions tagged [ihttpasynchandler]
39 questions
2
votes
1 answer
How to setup an IHttpAsyncHandler?
I am trying to setup an asynchronous HttpHandler, but I have no idea if I am on the right track. There doesn't seem to be much documentation on it. I would just like to get the request to fire off the DoWork() method async.
A few things I am not…

chobo
- 31,561
- 38
- 123
- 191
2
votes
0 answers
Async Http Handler
I have a ASHX that do bulk insert at a SQLite. This page load for 2sec +/-
Its a good practice implement it with Async Http Handler to not hold a ASP.NET Thread while I do I/O work.
To turn my IHttpHandler into IHttpAsyncHandler I just did this, its…

Felipe Pessoto
- 6,855
- 10
- 42
- 73
2
votes
2 answers
Simulating push technology by rebuilding the AsynchResult Object - is it even possible?
Recently, I successfully created a long-polling service using HttpAsyncHandler’s. During the development it came to me (that) I “might” be able to re-use the AsyncResult object many times without long-polling repeatedly. If possible, I could then…

Prisoner ZERO
- 13,848
- 21
- 92
- 137
2
votes
1 answer
Could IAsyncResult in IHttpAsyncHandler.EndProcessRequest ever be null?
Consider the following code:
public class AsyncRequestHandler : IHttpAsyncHandler
{
public void EndProcessRequest(IAsyncResult result)
{
if (result == null)
{
...
}
...
}
}
ReSharper suggests that result could…

Pooven
- 1,744
- 1
- 25
- 44
2
votes
1 answer
IHttpAsyncHandler and IObservable web requests
Within Async handler I'm creating an IObservable from webrequest which returns a redirect string.
I'm subscribing to that observable and calling AsyncResult.CompleteCall() but I'm forced to use Thread.Sleep(100) in order to get it executed. And it…

Sergey
- 3,214
- 5
- 34
- 47
2
votes
1 answer
Threads of IHttpAsyncHandler
I read this article and know something about IHttpAsyncHandler.
According to below picture,there are 2 threads created when I call an AsyncHandler.
When a request comes, IIS will grab a thread——Thread 1 to handle this request, and when it calls the…

roast_soul
- 3,554
- 7
- 36
- 73
2
votes
1 answer
"Object reference not set to an instance of object" error in callback
I am using IHttpAsyncHandler and XMLHTTPRequest to push messages to client with the help of following URL: http://www.codeproject.com/Articles/42734/Using-IHttpAsyncHandler-and-XMLHttpRequest-to-push
but I make some changes, actually this example…

ankit Gupta
- 313
- 1
- 5
- 19
1
vote
1 answer
Asynchronous http handler dealing with .csv files in asp.net
I have developed a live scoring application which is based on the long polling approach, or Comet as they also call it. I have used ASP.NET 4.0 running on IIS 6 (windows 2003 - only two CPUs, which does not help me much with the availability of…

pzelenovic
- 420
- 3
- 15
1
vote
1 answer
How to use IHTTPAsyncHandler?
Imagine I have some code to read from the start to end of a file like so:
while(sw.readline != null)
{
}
I want this to be fully asynchronous. When deriving from IHTTPAsyncHandler, where would this code go and where would would the code to get the…

GurdeepS
- 65,107
- 109
- 251
- 387
1
vote
2 answers
IHttpHandler or IHttpAsyncHandler for Image server
My task is to develop an Image server, that will:
load images from disk
resize it, according to HTTP parameter
apply one or more watermarks to the original image
The question is what technology should I use, I am going to do it with…

Alex Sikilinda
- 2,928
- 18
- 34
1
vote
1 answer
Comet with ASP.NET AsyncHttpHandlers
I am implementing a comet using AsyncHttpHandlers in my current asp.net application. According to my implementation client initially sends Notification Hook request to server (with its user id) on AsyncHttpHandler, and on server side I maintain a…

Sumit
- 2,932
- 6
- 32
- 54
0
votes
1 answer
Internet Explorer 9 Silverlight 4 memory leak
We are streaming video from a ashx implementing IHttpAsyncHandler to our Silverlight client.
On the clientside the async handler is getting use in a implementation of MediaStreamSource.
It all runs fine in latest Firefox, chrome and also in…

mimo
- 937
- 12
- 19
0
votes
2 answers
Synchronous database reads inside IHttpAsyncHandler
On asp.net if i call a synchronous database query inside an IHttpAsyncHandler with delegate.BeginInvoke, would it still release the asp.net worker thread while reading the database?
For example, this post:…
sayao
0
votes
1 answer
Why async handler is doing loops when exception occures?
I have this handler. I had an exception occuring in the 'StartTransfer' method of the inner class (I've marked the spot), and for reason I don't know it went looping this method. Why did it go loops and didn't just responded in exception…

aikixd
- 506
- 5
- 16
0
votes
1 answer
IHttpAsyncHandler instance use by the runtime
Given an IHttpAsyncHandler instance A, will A be the instance that receives the EndProcessRequest callback? If so, it is guaranteed? Does the IsReusable property alter the behavior at all?
It's complicated enough to try to test that I wanted to…

Joel Clark
- 549
- 2
- 14