Esempio n. 1
0
 public static void SDUsageSampleAsync()
 {
     try
     {
         MappingService scriptDetection = new MappingService(
             MappingAvailableServices.ScriptDetection);
         MappingRecognizeAsyncResult asyncResult = scriptDetection.BeginRecognizeText(
             "This is English. АБВГД.", null, SDSampleCallback, null);
         MappingService.EndRecognizeText(asyncResult);
     }
     catch (LinguisticException exc)
     {
         Console.WriteLine("Error calling ELS: {0}, HResult: {1}",
                           exc.ResultState.ErrorMessage, exc.ResultState.HResult);
     }
 }