Search Results for

    Show / Hide Table of Contents

    Class UtilityClient

    Implementation of IUtilityClient

    Inheritance
    object
    UtilityClient
    Implements
    IUtilityClient
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Noxum.Nova.Index.Client
    Assembly: Noxum.Nova.Index.Client.dll
    Syntax
    public class UtilityClient : IUtilityClient

    Constructors

    UtilityClient(string, HttpClient)

    Declaration
    public UtilityClient(string baseUrl, HttpClient httpClient)
    Parameters
    Type Name Description
    string baseUrl
    HttpClient httpClient

    Properties

    BaseUrl

    Declaration
    public string BaseUrl { get; set; }
    Property Value
    Type Description
    string

    JsonSerializerSettings

    Declaration
    protected JsonSerializerOptions JsonSerializerSettings { get; }
    Property Value
    Type Description
    JsonSerializerOptions

    ReadResponseAsString

    Declaration
    public bool ReadResponseAsString { get; set; }
    Property Value
    Type Description
    bool

    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
    Type Description
    Task<MatchStringsResponse>

    OK

    Exceptions
    Type Condition
    IndexApiException

    A server side error occurred.

    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
    Type Name Description
    HttpResponseMessage response
    IReadOnlyDictionary<string, IEnumerable<string>> headers
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<UtilityClient.ObjectResponseResult<T>>
    Type Parameters
    Name Description
    T

    Implements

    IUtilityClient
    In this article
    Back to top Version 6.1.0.11rc