Async Programming Pattern

Amos Xia, 2018-04-30 13:28:12

C#的异步编程模型

Task-based Asynchronous Pattern(TAP)

TAP is based on the System.Threading.Tasks.Task and System.Threading.Tasks.Task types in System.Threading.Tasks namespace.

Event-based Asynchronous Pattern(EAP)

Asynchronous method is end with Async - event handler end with EventHandler - event arguments end with EventArgs from AsyncCompletedEventArgs

Asynchronous Programming Model(APM)

Asynchronous operation uses IAsyncResult design pattern is implemented as two methods named Begin OperationName and End OperationName that begin and end the asynchronous operation OperationName respectively.



知识共享许可协议
本作品采用知识共享署名 4.0 国际许可协议进行许可。


Copyright© 2018 s2u2m