コード例 #1
0
 public virtual Response <SuggestDocumentsResult> SuggestPost(SuggestOptions suggestRequest, Guid?xMsClientRequestId = null, CancellationToken cancellationToken = default)
 {
     using var scope = _clientDiagnostics.CreateScope("DocumentsClient.SuggestPost");
     scope.Start();
     try
     {
         return(RestClient.SuggestPost(suggestRequest, xMsClientRequestId, cancellationToken));
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }
コード例 #2
0
 public virtual async Task <Response <SuggestDocumentsResult> > SuggestPostAsync(SuggestOptions suggestRequest, Guid?xMsClientRequestId = null, CancellationToken cancellationToken = default)
 {
     return(await RestClient.SuggestPostAsync(suggestRequest, xMsClientRequestId, cancellationToken).ConfigureAwait(false));
 }
コード例 #3
0
 public virtual Response <SuggestDocumentsResult> SuggestPost(SuggestOptions suggestRequest, Guid?xMsClientRequestId = null, CancellationToken cancellationToken = default)
 {
     return(RestClient.SuggestPost(suggestRequest, xMsClientRequestId, cancellationToken));
 }