Ejemplo n.º 1
0
 private void CreateCompletedEventArgs(Task<HttpResponseMessage> task)
 {
     completedEventArgs = new PostSenderCompletedEventArgs();
     completedEventArgs.Success = task.IsGeneralSuccess() && task.Result.IsSuccessStatusCode;
     completedEventArgs.Result = completedEventArgs.Success
         ? task.Result.Content.ReadAsStringAsync().Result : null;
 }