Web content syndication is a process in which materials of the transmitting website are distributed around various receiving sites. In most cases, web syndication means making web feeds available from a source site to offer others with an update or summary of the website's freshly added content, for instance, forum posts or latest news regarding... Read more
An asynchronous method call is a method used in .NET programming that returns to the caller immediately before the completion of its processing and without blocking the calling thread.When an application calls an asynchronous method, it can simultaneously execute along with the execution of the asynchronous method that performs its task. An asynchronous method runs in a thread separate from the main application thread. The processing results are fetched through another call on another thread. Asynchronous methods help optimize the execution of resources resulting in scalable application. These are used to execute time-consuming tasks such as opening large files, connecting to remote computers, querying a database, calling Web services and ASP.NET Web forms.Asynchronous method call may also be referred to as asynchronous method invocation (AMI).
Asynchronous method differs from synchronous method in the manner in which it returns from the call. While an asynchronous method call returns immediately, allowing the calling program to perform other operations, synchronous method calls wait for the method to complete before continuing with program flow.The .NET framework has inbuilt asynchronous infrastructure so that any method can be asynchronously invoked without altering its code..NET framework provides two design patterns to implement the asynchronous method, which are those using asynchronous delegates (IASyncResult objects) and events. Asynchronous delegates' pattern is more complex and provides flexibility, which makes it well-suited to various complex programming models. The event-based model is simple and should be used in most cases. In the asynchronous delegates pattern, a delegate object uses two methods: BeginInvoke and EndInvoke. BeginInvoke has a list of parameters, which are similar to its wrapped function, along with two additional optional parameters; it returns the IAsyncResult object. EndInvoke returns two parameters (out and ref type) along with the IAsyncResult object. BeginInvoke is used for initiating the asynchronous call, whereas EndInvoke is used to retrieve the results of the asynchronous call.Events-based asynchronous patterns use a class that has one or more methods, named MethodNameAsync, which have corresponding synchronous versions that execute on the current thread. Events-based patterns may also have a MethodNameCompleted event and MethodNameAsyncCancel method. This pattern enables the class to communicate with pending asynchronous operations using the delegate event model. The following are a few tips related to asynchronous methods:
Read More »
Join 138,000+ IT pros on our weekly newsletter
Technology Terms: # A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Home | Advertising Info | Write for Us | About | Contact Us
Janalta Interactive Sites: ForexDictionary.com | Testopedia.com | Divestopedia.com | Zideate.com