public static IApiClientOperation <TResult> OnSuccess <TResult>(this IApiClientOperation <TResult> operation, Func <TResult, CancellationToken, Task> task)
 {
     operation.SetSuccessTask(task);
     return(operation);
 }
 public static IApiClientOperation OnSuccess(this IApiClientOperation operation, Func <HttpStatusCode, CancellationToken, Task> task)
 {
     operation.SetSuccessTask(task);
     return(operation);
 }