473,748 Members | 8,773 Online
Bytes | Software Development & Data Engineering Community
+ 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 4077
Morgan Cheng <mo************ @gmail.comwrote in
news:11******** *************@i 38g2000prf.goog legroups.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...@r ogers.comwrote:
Morgan Cheng <morgan.chen... @gmail.comwrote innews:11****** *************** @i38g2000prf.go oglegroups.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.goog legroups.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...@r ogers.comwrote:
Morgan Cheng <morgan.chen... @gmail.comwrote innews:11****** *************** *@q3g2000prf.go oglegroups.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(Be ginXXX/EndXXX)
pattern.
Aug 6 '07 #5

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

Similar topics

9
5734
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 deepest visible element to the top. By carefully studying fromElement and toElement properties, one can handle events on any point of their way up. NN/FF implements a "Russian hills" style: mouse events go first up->down (window->deepest...
6
14907
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 keypress() {
3
12151
by: Melissa | last post by:
What specifically causes the Format event of a report's section to fire? Thanks! Melissa
2
4990
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 "," variable-declarator variable-declarator:
12
4138
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. However in vb.net you get continual messages (even setting the system modal property). Firstly, are these two assumptions right and if so what is the approved
41
4318
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 on some initialization information obtained elsewhere. Basically, I'm going to create my own dynamic toolbar where the toolbarbuttons can change. I'm not using the VB toolbar because of limitations in changing things like backcolor (I can't get...
15
21364
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, event); }, false); }
0
2074
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 if it doesn't exist yet. The event manager uses weakrefs, so lists of listeners won't stop them
0
1843
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 BUTTON that open the Hyperlink in a new window for a Web application. I just want to capture the Shift click event and prevent it from opening a new page. Mouse Wheel didn't pose any problems but the other mouse buttons seems to ignore the...
9
2471
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 post event will always execuate after the system is completed... - I want to wrap this functionality in a framework, so I could possibly have 3 or 4 levels of inherited objects that need to have these pre / post events executed before and after the...
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8831
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9548
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9325
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9249
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6796
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4876
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3315
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 we have to send another system
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.