How can I calculate progress with HttpClient PostAsync?

后端 未结 2 936
春和景丽
春和景丽 2020-12-17 04:15

In my Windows Store App (c#) I need to upload MultipartFormDataContent (some strings content and some files) to server and get a huge file at response. The prob

2条回答
  •  难免孤独
    2020-12-17 04:56

    The WebAPI Client nuget has some classes for doing this. Take a look at the ProgressMessageHandler. It is a PCL library so it should run fine for a Windows Store App.

提交回复
热议问题