コード例 #1
0
 protected AzureOcrResult(TimeSpan processTime, IImageContent imageContent, Exception error,
                          RawAzureOcrResult rawAzureOcrResult) : base(processTime, imageContent, error)
 {
     RawResult = rawAzureOcrResult;
 }
コード例 #2
0
 public static AzureOcrResult CreateSuccesResult(TimeSpan processTime, IImageContent imageContent, RawAzureOcrResult rawAzureOcrResult)
 {
     if (imageContent == null)
     {
         throw new ArgumentNullException(nameof(imageContent));
     }
     if (rawAzureOcrResult == null)
     {
         throw new ArgumentNullException(nameof(rawAzureOcrResult));
     }
     return(new AzureOcrResult(processTime, imageContent, null, rawAzureOcrResult));
 }