@@ -141,7 +141,7 @@ public virtual RecognizeContentOperation StartRecognizeContent(Stream form, Reco
141141 Response response = ServiceClient . AnalyzeLayoutAsync (
142142 formContentType . ConvertToContentType1 ( ) ,
143143 form ,
144- recognizeContentOptions . Language == null ? ( Language ? ) null : recognizeContentOptions . Language ,
144+ recognizeContentOptions . Language ,
145145 recognizeContentOptions . Pages . Count == 0 ? null : recognizeContentOptions . Pages ,
146146 cancellationToken ) ;
147147 string location = ClientCommon . GetResponseHeader ( response . Headers , Constants . OperationLocationHeader ) ;
@@ -180,7 +180,7 @@ public virtual async Task<RecognizeContentOperation> StartRecognizeContentAsync(
180180 Response response = await ServiceClient . AnalyzeLayoutAsyncAsync (
181181 formContentType . ConvertToContentType1 ( ) ,
182182 form ,
183- recognizeContentOptions . Language == null ? ( Language ? ) null : recognizeContentOptions . Language ,
183+ recognizeContentOptions . Language ,
184184 recognizeContentOptions . Pages . Count == 0 ? null : recognizeContentOptions . Pages ,
185185 cancellationToken ) . ConfigureAwait ( false ) ;
186186 string location = ClientCommon . GetResponseHeader ( response . Headers , Constants . OperationLocationHeader ) ;
@@ -216,7 +216,7 @@ public virtual RecognizeContentOperation StartRecognizeContentFromUri(Uri formUr
216216 {
217217 SourcePath sourcePath = new SourcePath ( ) { Source = formUri . AbsoluteUri } ;
218218 Response response = ServiceClient . AnalyzeLayoutAsync (
219- recognizeContentOptions . Language == null ? ( Language ? ) null : recognizeContentOptions . Language ,
219+ recognizeContentOptions . Language ,
220220 recognizeContentOptions . Pages . Count == 0 ? null : recognizeContentOptions . Pages ,
221221 sourcePath ,
222222 cancellationToken ) ;
@@ -253,7 +253,7 @@ public virtual async Task<RecognizeContentOperation> StartRecognizeContentFromUr
253253 {
254254 SourcePath sourcePath = new SourcePath ( ) { Source = formUri . AbsoluteUri } ;
255255 Response response = await ServiceClient . AnalyzeLayoutAsyncAsync (
256- recognizeContentOptions . Language == null ? ( Language ? ) null : recognizeContentOptions . Language ,
256+ recognizeContentOptions . Language ,
257257 recognizeContentOptions . Pages . Count == 0 ? null : recognizeContentOptions . Pages ,
258258 sourcePath ,
259259 cancellationToken ) . ConfigureAwait ( false ) ;
@@ -299,7 +299,7 @@ public virtual async Task<RecognizeReceiptsOperation> StartRecognizeReceiptsAsyn
299299 formContentType . ConvertToContentType1 ( ) ,
300300 receipt ,
301301 recognizeReceiptsOptions . IncludeFieldElements ,
302- recognizeReceiptsOptions . Locale == null ? ( Locale ? ) null : recognizeReceiptsOptions . Locale ,
302+ recognizeReceiptsOptions . Locale ,
303303 cancellationToken ) . ConfigureAwait ( false ) ;
304304 string location = ClientCommon . GetResponseHeader ( response . Headers , Constants . OperationLocationHeader ) ;
305305
@@ -339,7 +339,7 @@ public virtual RecognizeReceiptsOperation StartRecognizeReceipts(Stream receipt,
339339 formContentType . ConvertToContentType1 ( ) ,
340340 receipt ,
341341 recognizeReceiptsOptions . IncludeFieldElements ,
342- recognizeReceiptsOptions . Locale == null ? ( Locale ? ) null : recognizeReceiptsOptions . Locale ,
342+ recognizeReceiptsOptions . Locale ,
343343 cancellationToken ) ;
344344 string location = ClientCommon . GetResponseHeader ( response . Headers , Constants . OperationLocationHeader ) ;
345345
@@ -376,7 +376,7 @@ public virtual async Task<RecognizeReceiptsOperation> StartRecognizeReceiptsFrom
376376 SourcePath sourcePath = new SourcePath ( ) { Source = receiptUri . AbsoluteUri } ;
377377 Response response = await ServiceClient . AnalyzeReceiptAsyncAsync (
378378 recognizeReceiptsOptions . IncludeFieldElements ,
379- recognizeReceiptsOptions . Locale == null ? ( Locale ? ) null : recognizeReceiptsOptions . Locale ,
379+ recognizeReceiptsOptions . Locale ,
380380 sourcePath ,
381381 cancellationToken ) . ConfigureAwait ( false ) ;
382382 string location = ClientCommon . GetResponseHeader ( response . Headers , Constants . OperationLocationHeader ) ;
@@ -414,7 +414,7 @@ public virtual RecognizeReceiptsOperation StartRecognizeReceiptsFromUri(Uri rece
414414 SourcePath sourcePath = new SourcePath ( ) { Source = receiptUri . AbsoluteUri } ;
415415 Response response = ServiceClient . AnalyzeReceiptAsync (
416416 recognizeReceiptsOptions . IncludeFieldElements ,
417- recognizeReceiptsOptions . Locale == null ? ( Locale ? ) null : recognizeReceiptsOptions . Locale ,
417+ recognizeReceiptsOptions . Locale ,
418418 sourcePath ,
419419 cancellationToken ) ;
420420 string location = ClientCommon . GetResponseHeader ( response . Headers , Constants . OperationLocationHeader ) ;
@@ -459,7 +459,7 @@ public virtual async Task<RecognizeBusinessCardsOperation> StartRecognizeBusines
459459 formContentType . ConvertToContentType1 ( ) ,
460460 businessCard ,
461461 recognizeBusinessCardsOptions . IncludeFieldElements ,
462- recognizeBusinessCardsOptions . Locale == null ? ( Locale ? ) null : recognizeBusinessCardsOptions . Locale ,
462+ recognizeBusinessCardsOptions . Locale ,
463463 cancellationToken ) . ConfigureAwait ( false ) ;
464464 string location = ClientCommon . GetResponseHeader ( response . Headers , Constants . OperationLocationHeader ) ;
465465
@@ -499,7 +499,7 @@ public virtual RecognizeBusinessCardsOperation StartRecognizeBusinessCards(Strea
499499 formContentType . ConvertToContentType1 ( ) ,
500500 businessCard ,
501501 recognizeBusinessCardsOptions . IncludeFieldElements ,
502- recognizeBusinessCardsOptions . Locale == null ? ( Locale ? ) null : recognizeBusinessCardsOptions . Locale ,
502+ recognizeBusinessCardsOptions . Locale ,
503503 cancellationToken ) ;
504504 string location = ClientCommon . GetResponseHeader ( response . Headers , Constants . OperationLocationHeader ) ;
505505
@@ -536,7 +536,7 @@ public virtual async Task<RecognizeBusinessCardsOperation> StartRecognizeBusines
536536 SourcePath sourcePath = new SourcePath ( ) { Source = businessCardUri . AbsoluteUri } ;
537537 Response response = await ServiceClient . AnalyzeBusinessCardAsyncAsync (
538538 recognizeBusinessCardsOptions . IncludeFieldElements ,
539- recognizeBusinessCardsOptions . Locale == null ? ( Locale ? ) null : recognizeBusinessCardsOptions . Locale ,
539+ recognizeBusinessCardsOptions . Locale ,
540540 sourcePath ,
541541 cancellationToken ) . ConfigureAwait ( false ) ;
542542 string location = ClientCommon . GetResponseHeader ( response . Headers , Constants . OperationLocationHeader ) ;
@@ -574,7 +574,7 @@ public virtual RecognizeBusinessCardsOperation StartRecognizeBusinessCardsFromUr
574574 SourcePath sourcePath = new SourcePath ( ) { Source = businessCardUri . AbsoluteUri } ;
575575 Response response = ServiceClient . AnalyzeBusinessCardAsync (
576576 recognizeBusinessCardsOptions . IncludeFieldElements ,
577- recognizeBusinessCardsOptions . Locale == null ? ( Locale ? ) null : recognizeBusinessCardsOptions . Locale ,
577+ recognizeBusinessCardsOptions . Locale ,
578578 sourcePath ,
579579 cancellationToken ) ;
580580 string location = ClientCommon . GetResponseHeader ( response . Headers , Constants . OperationLocationHeader ) ;
@@ -619,7 +619,7 @@ public virtual async Task<RecognizeInvoicesOperation> StartRecognizeInvoicesAsyn
619619 formContentType . ConvertToContentType1 ( ) ,
620620 invoice ,
621621 recognizeInvoicesOptions . IncludeFieldElements ,
622- recognizeInvoicesOptions . Locale == null ? ( Locale ? ) null : recognizeInvoicesOptions . Locale ,
622+ recognizeInvoicesOptions . Locale ,
623623 cancellationToken ) . ConfigureAwait ( false ) ;
624624 string location = ClientCommon . GetResponseHeader ( response . Headers , Constants . OperationLocationHeader ) ;
625625
@@ -659,7 +659,7 @@ public virtual RecognizeInvoicesOperation StartRecognizeInvoices(Stream invoice,
659659 formContentType . ConvertToContentType1 ( ) ,
660660 invoice ,
661661 recognizeInvoicesOptions . IncludeFieldElements ,
662- recognizeInvoicesOptions . Locale == null ? ( Locale ? ) null : recognizeInvoicesOptions . Locale ,
662+ recognizeInvoicesOptions . Locale ,
663663 cancellationToken ) ;
664664 string location = ClientCommon . GetResponseHeader ( response . Headers , Constants . OperationLocationHeader ) ;
665665
@@ -696,7 +696,7 @@ public virtual async Task<RecognizeInvoicesOperation> StartRecognizeInvoicesFrom
696696 SourcePath sourcePath = new SourcePath ( ) { Source = invoiceUri . AbsoluteUri } ;
697697 Response response = await ServiceClient . AnalyzeInvoiceAsyncAsync (
698698 recognizeInvoicesOptions . IncludeFieldElements ,
699- recognizeInvoicesOptions . Locale == null ? ( Locale ? ) null : recognizeInvoicesOptions . Locale ,
699+ recognizeInvoicesOptions . Locale ,
700700 sourcePath ,
701701 cancellationToken ) . ConfigureAwait ( false ) ;
702702 string location = ClientCommon . GetResponseHeader ( response . Headers , Constants . OperationLocationHeader ) ;
@@ -734,7 +734,7 @@ public virtual RecognizeInvoicesOperation StartRecognizeInvoicesFromUri(Uri invo
734734 SourcePath sourcePath = new SourcePath ( ) { Source = invoiceUri . AbsoluteUri } ;
735735 Response response = ServiceClient . AnalyzeInvoiceAsync (
736736 recognizeInvoicesOptions . IncludeFieldElements ,
737- recognizeInvoicesOptions . Locale == null ? ( Locale ? ) null : recognizeInvoicesOptions . Locale ,
737+ recognizeInvoicesOptions . Locale ,
738738 sourcePath ,
739739 cancellationToken ) ;
740740 string location = ClientCommon . GetResponseHeader ( response . Headers , Constants . OperationLocationHeader ) ;
0 commit comments