public virtual Response <AutocompleteResults> AutocompletePost(AutocompleteOptions autocompleteRequest, Guid?xMsClientRequestId = null, CancellationToken cancellationToken = default)
 {
     using var scope = _clientDiagnostics.CreateScope("DocumentsClient.AutocompletePost");
     scope.Start();
     try
     {
         return(RestClient.AutocompletePost(autocompleteRequest, xMsClientRequestId, cancellationToken));
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }
Example #2
0
 public virtual Response <AutocompleteResults> AutocompletePost(AutocompleteOptions autocompleteRequest, Guid?xMsClientRequestId = null, CancellationToken cancellationToken = default)
 {
     return(RestClient.AutocompletePost(autocompleteRequest, xMsClientRequestId, cancellationToken));
 }
Example #3
0
 public virtual async Task <Response <AutocompleteResults> > AutocompletePostAsync(AutocompleteOptions autocompleteRequest, Guid?xMsClientRequestId = null, CancellationToken cancellationToken = default)
 {
     return(await RestClient.AutocompletePostAsync(autocompleteRequest, xMsClientRequestId, cancellationToken).ConfigureAwait(false));
 }