Part 31 :- Event Based Asynchronous Programming Patterns in .Net | asynchronous Programming in C#

Опубликовано: 12 Октябрь 2024
на канале: The DotNet Office
1,845
13

•Event-based Asynchronous Pattern (EAP) :-

•Which is the event-based legacy model for providing asynchronous behavior.

•A class that supports the Event-based Asynchronous Pattern will have one or more methods named MethodNameAsync.

• These methods may mirror synchronous versions, which perform the same operation on the current thread.

•The class may also have a MethodNameCompleted event and it may have a MethodNameAsyncCancel (or simply CancelAsync) method.

•Basically, this pattern enforces a pair of methods and an event to collaborate and help the application execute a thread asynchronously

http://www.dotnetoffice.com/
Support Us
https://www.buymeacoffee.com/theDotNe... : Buy me a Book
Support: https://www.paypal.com/paypalme/theDo...
Facebook:   / thedotnetoffice  
Twitter:   / thedotnetoffice  

#csharp #multithread #csharpprogramming