public UploadFileToAppResultResponse UploadFileToAppResult(UploadFileToAppResultRequest toAppResultRequest, IRequestOptions options = null)
 {
     var fileUploadClient = new FileUpload(WebClient, Settings, options ?? WebClient.DefaultRequestOptions);
     return fileUploadClient.UploadFile(toAppResultRequest);
 }
 public Types.File UploadFileToAppResult(UploadFileToAppResultRequest toAppResultRequest,
                                                            IRequestOptions options = null)
 {
     var fileUploadClient = new FileUpload(WebClient, ClientSettings, options ?? WebClient.DefaultRequestOptions);
     var fileInfo = new FileInfo(toAppResultRequest.Name);
     return fileUploadClient.UploadFile<UploadFileToAppResultRequest>(fileInfo, toAppResultRequest.Id,
                                                                      toAppResultRequest.ResourceIdentifierInUri,
                                                                      toAppResultRequest.Directory);
 }