Ejemplo n.º 1
0
 private async Task <PostResponse> Post()
 {
     return(JsonSerializerExtension.Serializer.DeserializeFromStream <PostResponse>(await(await MyHttpClient.PostAsync(
                                                                                              PostUrl, new FormUrlEncodedContent(
                                                                                                  new Dictionary <string, string> {
         { "id", PostId.ToString() }
     }))).Content.ReadAsStreamAsync()));
 }