@@ -39,45 +39,31 @@ public IReadableConfiguration Configuration
39
39
40
40
public RecognitionResponse Process ( ProcessRequest processRequest )
41
41
{
42
- return Process ( processRequest , new Dictionary < String , String > ( ) , default ( string ) ) ;
42
+ return Process ( processRequest , default ( string ) ) ;
43
43
}
44
-
45
- public RecognitionResponse Process ( ProcessRequest processRequest , Dictionary < String , String > headers )
46
- {
47
- return Process ( processRequest , headers , default ( string ) ) ;
48
- }
49
-
50
- public RecognitionResponse Process ( ProcessRequest processRequest , String xRequestID )
51
- {
52
- return Process ( processRequest , new Dictionary < String , String > ( ) , xRequestID ) ;
53
- }
54
-
55
- public RecognitionResponse Process ( ProcessRequest processRequest , Dictionary < String , String > headers , String xRequestID )
44
+ public RecognitionResponse Process ( ProcessRequest processRequest , String xRequestID )
56
45
{
57
46
if ( processRequest . SystemInfo == null )
58
47
processRequest . SystemInfo = new ProcessSystemInfo ( License ) ;
59
48
else
60
49
processRequest . SystemInfo . License = License ;
61
50
62
- return new RecognitionResponse ( this . _processApi . ApiProcessWithHttpInfo ( processRequest , xRequestID ) ) ;
63
- }
51
+ var response = this . _processApi . ApiProcessWithHttpInfo ( processRequest , xRequestID ) ;
64
52
65
- public async Task < RecognitionResponse > ProcessAsync ( ProcessRequest processRequest )
66
- {
67
- return await ProcessAsync ( processRequest , new Dictionary < String , String > ( ) , default ( string ) ) ;
53
+ return new RecognitionResponse ( response ) ;
68
54
}
69
55
70
- public async Task < RecognitionResponse > ProcessAsync ( ProcessRequest processRequest , Dictionary < String , String > headers )
56
+ public async Task < RecognitionResponse > ProcessAsync ( ProcessRequest processRequest )
71
57
{
72
- return await ProcessAsync ( processRequest , headers , default ( string ) ) ;
58
+ return await ProcessAsync ( processRequest , default ( string ) ) ;
73
59
}
74
60
75
61
public async Task < RecognitionResponse > ProcessAsync ( ProcessRequest processRequest , String xRequestID )
76
62
{
77
- return await ProcessAsync ( processRequest , new Dictionary < String , String > ( ) , xRequestID ) ;
63
+ return await ProcessAsync ( processRequest , xRequestID , new CancellationToken ( ) ) ;
78
64
}
79
65
80
- public async Task < RecognitionResponse > ProcessAsync ( ProcessRequest processRequest , Dictionary < String , String > headers , String xRequestID , CancellationToken cancellationToken = default ( CancellationToken ) )
66
+ public async Task < RecognitionResponse > ProcessAsync ( ProcessRequest processRequest , String xRequestID , CancellationToken cancellationToken = default ( CancellationToken ) )
81
67
{
82
68
if ( processRequest . SystemInfo == null )
83
69
processRequest . SystemInfo = new ProcessSystemInfo ( License ) ;
0 commit comments