public Task ProcessBusinessCard(string filePath, BusCardProcessingSettings settings) { string url = String.Format("{0}/processBusinessCard?{1}", ServerUrl, settings.AsUrlParams); // Build post request WebRequest request = createPostRequest(url); writeFileToRequest(filePath, request); XDocument response = performRequest(request); Task serverTask = ServerXml.GetTaskStatus(response); return(serverTask); }
public void ProcessBusinessCardAsync(string filePath, BusCardProcessingSettings settings, object taskId) { processFileAsync(filePath, settings, taskId); }
BusCardProcessingSettings GetBusCardProcessingSettings() { BusCardProcessingSettings result = new BusCardProcessingSettings(); result.Language = getLanguages(); return result; }