C#中 async await的使用,异步http库的使用

 HttpLib使用

https://github.com/j6mes/httplib/

https://www.cnblogs.com/haogj/archive/2013/01/02/2842265.html

 

 Getter-only 的属性只能在构造函数中被赋值,而 private set 的属性还可以在该类的其他方法中被赋值。

定义一个public static的方法,参数为(this CLASS_TYPE para)

比如 public static return_type method_name(this CLASS_TYPE para){

}

效果就是为类CLASS_TYPE增加了一个方法method_name, 参数为空,返回值为return_type的对象。

参考文档:

https://docs.microsoft.com/en-us/dotnet/csharp/async

https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/async/index

posted on 2018-09-29 10:27  legion  阅读(321)  评论(0编辑  收藏  举报

导航