Class UtilityClient
Inheritance
UtilityClient
Assembly: Noxum.Nova.Index.Client.dll
Syntax
public class UtilityClient : IUtilityClient
Constructors
UtilityClient(string, HttpClient)
Declaration
public UtilityClient(string baseUrl, HttpClient httpClient)
Parameters
Properties
BaseUrl
Declaration
public string BaseUrl { get; set; }
Property Value
JsonSerializerSettings
Declaration
protected JsonSerializerOptions JsonSerializerSettings { get; }
Property Value
ReadResponseAsString
Declaration
public bool ReadResponseAsString { get; set; }
Property Value
Methods
MatchStringsAsync(MatchStringsRequest, CancellationToken)
Get the number of objects that match a search filter
Declaration
public virtual Task<MatchStringsResponse> MatchStringsAsync(MatchStringsRequest request, CancellationToken cancellationToken = default)
Parameters
| Type |
Name |
Description |
| MatchStringsRequest |
request |
The match request
|
| CancellationToken |
cancellationToken |
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
|
Returns
Exceptions
ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<string, IEnumerable<string>>, CancellationToken)
Declaration
protected virtual Task<UtilityClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
Parameters
Returns
Type Parameters
Implements