473,699 Members | 2,302 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

what is an asynchronous event?

Hi All,

When we say events are processed asynchronously in for instance Sharepoint
,what dose it mean?

Thanks for your help.
Ali

Nov 16 '05 #1
13 4391
I somehow know what synch and asynch are.here might not be a good place to
ask this question and maybe I have to post it to sharepoint newsgroup but
**symantically* * I have problem underestanding this parageraph:
"Events are processed asynchronously. As a result, a registered event
handler will only be notified about the document deletion after that
document has already been deleted from the SQL ServerT backend database."

Thanks

"John Timney (ASP.NET MVP)" <ti*****@despam med.com> wrote in message
news:uI******** ********@TK2MSF TNGP10.phx.gbl. ..
Synchronous means that two things happen with some type of
synchronization -- I.e. there's a well-defined relationship between the
times at which the two happen. Ie a radio'conversat ion - speak your words
and say over, then the next person speaks and says over.

Therefore Asynchronous means the opposite in that there's not really a
well-defined relationship between the times at which two things happen.
Like a telephone conversation - one person doesn't have to finish speaking
before the other speaks.
--
Regards
John Timney
ASP.NET MVP
Microsoft Regional Director

"ALI-R" <ne****@microso ft.com> wrote in message
news:ul******** ******@TK2MSFTN GP12.phx.gbl...
Hi All,

When we say events are processed asynchronously in for instance Sharepoint ,what dose it mean?

Thanks for your help.
Ali


Nov 16 '05 #2
I read this as saying that there is no synchronous way to delete a
document from SharePoint. You have no choice but to supply an event
handler that will be called after the document has been deleted. If you
want synchronous behaviour (delete-and-wait-for-completion) then you
have to code it yourself.

That's what I get out of it, anyway.

Nov 16 '05 #3
Sorry for posting with a messed up date - I have corrected this.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"John Timney (ASP.NET MVP)" <ti*****@despam med.com> wrote in message
news:uI******** ********@TK2MSF TNGP10.phx.gbl. ..
Synchronous means that two things happen with some type of
synchronization -- I.e. there's a well-defined relationship between the
times at which the two happen. Ie a radio'conversat ion - speak your words
and say over, then the next person speaks and says over.

Therefore Asynchronous means the opposite in that there's not really a
well-defined relationship between the times at which two things happen.
Like a telephone conversation - one person doesn't have to finish speaking
before the other speaks.
--
Regards
John Timney
ASP.NET MVP
Microsoft Regional Director

"ALI-R" <ne****@microso ft.com> wrote in message
news:ul******** ******@TK2MSFTN GP12.phx.gbl...
Hi All,

When we say events are processed asynchronously in for instance Sharepoint ,what dose it mean?

Thanks for your help.
Ali


Nov 16 '05 #4
I'm guessing that the code in question is something like this
psuedo-code.

Fire Event "About to Delete File"
Delete file
Fire Event "File Deleted"

However, since the "Fire Event" method will only place the event in the
message queue, nothing will recieve either event until after the file has
been deleted. If the events were synchronous, then Fire Event would not
return until all listeners had received the event.
"ALI-R" <ne****@microso ft.com> wrote in message
news:uU******** ******@TK2MSFTN GP12.phx.gbl...
I somehow know what synch and asynch are.here might not be a good place to
ask this question and maybe I have to post it to sharepoint newsgroup but
**symantically* * I have problem underestanding this parageraph:
"Events are processed asynchronously. As a result, a registered event
handler will only be notified about the document deletion after that
document has already been deleted from the SQL ServerT backend database."

Nov 16 '05 #5
So what I have underestood of what told me is that the process is like this
in **Asynchronous* * approach:

1) User requests to delete the File
2) The file is deleted
3) Event handler gets notified about Deletion

So ,if we pretend that Events are process **Synchronously ** the sequence
would be like this:

1) User requests to delete the File
2) Event handler gets notified about Deletion
3) The file is deleted.

Correct me if I'm wrong!!!thanks for yur help

Thasnks
Ali
"ALI-R" <ne****@microso ft.com> wrote in message
news:ul******** ******@TK2MSFTN GP12.phx.gbl...
Hi All,

When we say events are processed asynchronously in for instance Sharepoint
,what dose it mean?

Thanks for your help.
Ali

Nov 16 '05 #6
So what I have underestood of what told me is that the process is like this
in **Asynchronous* * approach:

1) User requests to delete the File
2) The file is deleted
3) Event handler gets notified about Deletion

So ,if we pretend that Events are process **Synchronously ** the sequence
would be like this:

1) User requests to delete the File
2) Event handler gets notified about Deletion
3) The file is deleted.

Correct me if I'm wrong please!!!thanks for your help

Thasnks
Ali

"James Curran" <ja*********@mv ps.org> wrote in message
news:Oi******** ******@TK2MSFTN GP11.phx.gbl...
I'm guessing that the code in question is something like this
psuedo-code.

Fire Event "About to Delete File"
Delete file
Fire Event "File Deleted"

However, since the "Fire Event" method will only place the event in the
message queue, nothing will recieve either event until after the file has
been deleted. If the events were synchronous, then Fire Event would not
return until all listeners had received the event.
"ALI-R" <ne****@microso ft.com> wrote in message
news:uU******** ******@TK2MSFTN GP12.phx.gbl...
I somehow know what synch and asynch are.here might not be a good place to ask this question and maybe I have to post it to sharepoint newsgroup but **symantically* * I have problem underestanding this parageraph:
"Events are processed asynchronously. As a result, a registered event
handler will only be notified about the document deletion after that
document has already been deleted from the SQL ServerT backend
database."

Nov 16 '05 #7
No, a synchronous invocation would look like this:

1) User requests to delete a file. User is left waiting.
2) File is deleted
3) Control is finally returned to user after file is deleted.

You have the idea of asynchrony correct:

1) User requests to delete a file; control is immediately returned to
user
2) File is deleted
3) User is notified that file is deleted.

Of course, in both of these scenarios, "user" can be seen as the real
user (synchrony is bad form in this case, leaving the user with an
unresponsive application while the file deletion is taking place), or
"user" can be seen as the program calling the deletion routine.

Nov 16 '05 #8
In synchronous invocation ,what is the role of event handler? where is the
event handler in this approach? you only talked about the use,my interest is
to know how event handler gets notified in synchronous invocation .
1) User requests to delete a file. User is left waiting.
2) File is deleted
3) Control is finally returned to user after file is deleted.
Thanks Bruce,
ALi-R

"Bruce Wood" <br*******@cana da.com> wrote in message
news:11******** **************@ c13g2000cwb.goo glegroups.com.. . No, a synchronous invocation would look like this:

1) User requests to delete a file. User is left waiting.
2) File is deleted
3) Control is finally returned to user after file is deleted.

You have the idea of asynchrony correct:

1) User requests to delete a file; control is immediately returned to
user
2) File is deleted
3) User is notified that file is deleted.

Of course, in both of these scenarios, "user" can be seen as the real
user (synchrony is bad form in this case, leaving the user with an
unresponsive application while the file deletion is taking place), or
"user" can be seen as the program calling the deletion routine.

Nov 16 '05 #9
I don't know about the particular routines you're calling, but usually
a synchronous invocation does not involve event handlers at all: you
call a method, it waits until some operation completes, then it returns
to you.

Of course, there may be an asynchronous invocation going on under the
covers. Some "synchronou s" method invocations are nothing more than
methods that send an event and don't return until the corresponding
reply event comes back. However, from the point of view of the caller,
a synchronous invocation doesn't need an event handler because you know
when the operation is done: when the method returns.

Nov 16 '05 #10

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

Similar topics

3
1864
by: David | last post by:
Hi There! I'm using Timer control to record how long my application perform certain tasks. However, apparently Timer control is not doing its' job (i.e. Not firing Tick event) while my application is busy. So even if my application took 2 mins, the label that is used to show the number of seconds elapsed will still say "2 seconds".
3
2490
by: Matthew King | last post by:
Hi all I've written a asynchronous socket client class, but i've found that in order to consume it I have to use events, and cannot simply for example SocketClient client = new SocketClient(110, "some.server.com") client.Connect() client.SendData("Hello World") Instead I have to wait for the async method to raise a Connected event, and call client.SendData from there, for complex chains of operations this because a nightmare chain of...
8
2301
by: Trotsky | last post by:
Hi I have asked a similar question on the web services discussion group, but the question is a bit more related to ASP.Net. Basically I have a ASP.Net application that calls a web service asynchronously. This is fine. My problem is that when I make a call to the web service asynchronously when I get the return which is passed into a static method I cannot reference any Web Contorls to paste the return values into from within the static method....
1
1325
by: Henrik Dahl | last post by:
Issue: I have a remote service executing notoriously asynchronously which I must be able to use from my Compute_Click(...) event handler. The WebForm I have contains only two controls: A Compute button and a Result textbox. I may easily start the asynchronous execution in the Compute_Click event handler. The asynchronous service notifies me when it's result is ready, the notification is done by a delegate invoking ResultReady(...). My...
1
2872
by: dba123 | last post by:
I need to perform Asynchronous Inserts using DAAB. So far I have a method which does an insert but how can I do this Asyncronously so that it does not affect the load on our public production website? This question is wide open but make sure you give me some ideas in context with DAAB syntax. Some thoughts are threading, ATLAS, etc. but I have no clue how to even approach an Asynchronous Insert or any techniques at this point. Also, I...
3
5663
by: =?Utf-8?B?aGVyYmVydA==?= | last post by:
I need to build an event-based asynchronous pattern (around a send/receive messaging API). Is there a step-by-step guidance about how to write code for the EBAP ? Does any book cover this theme (VB.NET preferred)? thanks herbert
4
4073
by: Morgan Cheng | last post by:
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.
0
1422
by: Morgan Cheng | last post by:
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? The only server side asynchronous web method post is http://msdn2.microsoft.com/en-us/library/aa480516.aspx. I don't...
167
8293
by: darren | last post by:
Hi I have to write a multi-threaded program. I decided to take an OO approach to it. I had the idea to wrap up all of the thread functions in a mix-in class called Threadable. Then when an object should run in its own thread, it should implement this mix-in class. Does this sound like plausible design decision? I'm surprised that C++ doesn't have such functionality, say in its STL. This absence of a thread/object relationship in...
0
8618
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
9178
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...
0
9035
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8916
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
8885
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...
0
7752
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6534
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...
1
3058
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
2348
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.