473,473 Members | 1,818 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Is there event-based asynchronous web method?

Since ASP.NET 2.0, asynchronous web service client can be implemented
with event-based pattern, instead of original BeginXXX/EndXXX pattern.
However, I didn't find any material about event-based server side
asynchronous web service. So, we can only implement asynchronous
webmethod with BeginXXX/EndXXX pattern, right?

I don't why ASP.NET 2.0 don't provide event-based server side pattern.

Aug 4 '07 #1
4 4065
Morgan Cheng <mo************@gmail.comwrote in
news:11*********************@i38g2000prf.googlegro ups.com:
Since ASP.NET 2.0, asynchronous web service client can be implemented
with event-based pattern, instead of original BeginXXX/EndXXX pattern.
However, I didn't find any material about event-based server side
asynchronous web service. So, we can only implement asynchronous
webmethod with BeginXXX/EndXXX pattern, right?

I don't why ASP.NET 2.0 don't provide event-based server side pattern.
Do you mean allowing the server to push information to the client?

You can't because web services are 1 way.

Or do you mean asynchronous processing on the server side? You don't really
need to because IIS will process each request in it's own thread context.
You only need to spawn additional thread if you have multiple tasks to
complete.

Aug 4 '07 #2
On Aug 5, 12:19 am, Spam Catcher <spamhoney...@rogers.comwrote:
Morgan Cheng <morgan.chen...@gmail.comwrote innews:11*********************@i38g2000prf.googleg roups.com:
Since ASP.NET 2.0, asynchronous web service client can be implemented
with event-based pattern, instead of original BeginXXX/EndXXX pattern.
However, I didn't find any material about event-based server side
asynchronous web service. So, we can only implement asynchronous
webmethod with BeginXXX/EndXXX pattern, right?
I don't why ASP.NET 2.0 don't provide event-based server side pattern.

Do you mean allowing the server to push information to the client?

You can't because web services are 1 way.
No, i don't mean allow the server to callback client, but let
asynchronous operation in server side.
That is, IIS arrange one thread to initialize operation of incoming
request, but the thread has no need to escort the whole processing of
the request. Because WebService may involves I/O operation,
synchronous web method will make the thread block on I/O. This is not
good, since by default there is 25 worker threads per CPU.

>
Or do you mean asynchronous processing on the server side? You don't really
need to because IIS will process each request in it's own thread context.
You only need to spawn additional thread if you have multiple tasks to
complete.
Though worker thread number in TheadPool can be configured, it is not
suggested.
Better way is to make I/O operation performed in I/O thread in
asynchronous way.

Aug 5 '07 #3
Morgan Cheng <mo************@gmail.comwrote in
news:11**********************@q3g2000prf.googlegro ups.com:
Though worker thread number in TheadPool can be configured, it is not
suggested.
Better way is to make I/O operation performed in I/O thread in
Submit your request to a Windows Service?
Aug 5 '07 #4
On Aug 6, 5:09 am, Spam Catcher <spamhoney...@rogers.comwrote:
Morgan Cheng <morgan.chen...@gmail.comwrote innews:11**********************@q3g2000prf.googleg roups.com:
Though worker thread number in TheadPool can be configured, it is not
suggested.
Better way is to make I/O operation performed in I/O thread in

Submit your request to a Windows Service?
What I mean is something described in this URL
http://msdn2.microsoft.com/en-us/library/aa480516.aspx
Since ASP.NET 2.0, client side has event-based pattern, but I don't
know why server-side is still using IAsyncResult(BeginXXX/EndXXX)
pattern.
Aug 6 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: VK | last post by:
My original idea of two trains, however pictural it was, appeared to be wrong. The truth seems to be even more chaotic. IE implements its standard down-up model: any mouse event goes from the...
6
by: rich_poppleton | last post by:
Help.... I've got a textarea where people type in a description. However for certain reasons we need to stop them typing !$*^ . I have a solution this which works fine in IE: function...
3
by: Melissa | last post by:
What specifically causes the Format event of a report's section to fire? Thanks! Melissa
2
by: Alex Sedow | last post by:
Why interface-event-declaration does not support multiple declarators like event-declaration? Grammar from C# spec: variable-declarators: variable-declarator variable-declarators ","...
12
by: Jack Russell | last post by:
My unstanding of all VB up to and including vb6 is that an event could not "interrupt" itself. For instance if you had a timer event containing a msgbox then you would only get one message. ...
41
by: JohnR | last post by:
In it's simplest form, assume that I have created a usercontrol, WSToolBarButton that contains a button. I would like to eventually create copies of WSToolBarButton dynamically at run time based...
15
by: prabhdeep | last post by:
Hi, Can somebody explain, why in following code, i get "event not defined" error funcTest(sMenu) { doument.getElementById('id1').addEventListener('mousedown', function(){ click(sMenu,...
0
by: Kamilche | last post by:
''' event.py An event manager using publish/subscribe, and weakrefs. Any function can publish any event without registering it first, and any object can register interest in any event, even...
0
by: lechatthierry | last post by:
Is it possible to block a mouse event on an Hyperlink with a general script event? This is quite troublesome for me. I am trying to find a way to block the windows shortcut SHIFT + MOUSE LEFT...
9
by: jeff | last post by:
New VB user...developer... Situation...simplified... - I want to wrap a pre and post event around a system generated where the pre-event will always execute before the system event and the...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.