示例#1
0
        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);
 }
示例#3
0
        BusCardProcessingSettings GetBusCardProcessingSettings()
        {
            BusCardProcessingSettings result = new BusCardProcessingSettings();
            result.Language = getLanguages();

            return result;
        }
示例#4
0
 public void ProcessBusinessCardAsync(string filePath, BusCardProcessingSettings settings, object taskId)
 {
     processFileAsync(filePath, settings, taskId);
 }