protected AzureOcrResult(TimeSpan processTime, IImageContent imageContent, Exception error, RawAzureOcrResult rawAzureOcrResult) : base(processTime, imageContent, error) { RawResult = rawAzureOcrResult; }
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)); }