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; } }
public virtual async Task <Response <SuggestDocumentsResult> > SuggestPostAsync(SuggestOptions suggestRequest, Guid?xMsClientRequestId = null, CancellationToken cancellationToken = default) { return(await RestClient.SuggestPostAsync(suggestRequest, xMsClientRequestId, cancellationToken).ConfigureAwait(false)); }
public virtual Response <SuggestDocumentsResult> SuggestPost(SuggestOptions suggestRequest, Guid?xMsClientRequestId = null, CancellationToken cancellationToken = default) { return(RestClient.SuggestPost(suggestRequest, xMsClientRequestId, cancellationToken)); }