Search Results for

    Show / Hide Table of Contents

    Class ObjectIndexClient

    Implementation of IObjectIndexClient

    Inheritance
    object
    ObjectIndexClient
    Implements
    IObjectIndexClient
    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 ObjectIndexClient : IObjectIndexClient

    Constructors

    ObjectIndexClient(string, HttpClient)

    Declaration
    public ObjectIndexClient(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

    ObjectCountAsync(int, ObjectCountRequest, CancellationToken)

    Get the number of objects that match a search filter

    Declaration
    public virtual Task<ObjectCountResult> ObjectCountAsync(int branch, ObjectCountRequest request, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    int branch

    The branch ID

    ObjectCountRequest request

    The count request

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    Task<ObjectCountResult>

    OK

    Exceptions
    Type Condition
    IndexApiException

    A server side error occurred.

    ObjectOccurrencesAsync(int, ObjectOccurrencesRequest, CancellationToken)

    Get occurrences of fields of objects that match a search filter

    Declaration
    public virtual Task<ObjectOccurrencesResult> ObjectOccurrencesAsync(int branch, ObjectOccurrencesRequest request, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    int branch

    The branch ID

    ObjectOccurrencesRequest request

    The occurrence request

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    Task<ObjectOccurrencesResult>

    OK

    Exceptions
    Type Condition
    IndexApiException

    A server side error occurred.

    ObjectSearchAsync(int, ObjectSearchRequest, CancellationToken)

    Search for objects

    Declaration
    public virtual Task<ObjectSearchResult> ObjectSearchAsync(int branch, ObjectSearchRequest request, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    int branch

    The branch ID

    ObjectSearchRequest request

    The search request

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    Task<ObjectSearchResult>

    OK

    Exceptions
    Type Condition
    IndexApiException

    A server side error occurred.

    ObjectXmlLinkCountAsync(int, ObjectXmlLinkCountRequest, CancellationToken)

    Get the number of objects with XML values that contain links to one
    of the objects requested.

    Declaration
    public virtual Task<ObjectCountResult> ObjectXmlLinkCountAsync(int branch, ObjectXmlLinkCountRequest request, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    int branch

    The branch ID

    ObjectXmlLinkCountRequest request

    The link count request

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    Task<ObjectCountResult>

    OK

    Exceptions
    Type Condition
    IndexApiException

    A server side error occurred.

    ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<string, IEnumerable<string>>, CancellationToken)

    Declaration
    protected virtual Task<ObjectIndexClient.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<ObjectIndexClient.ObjectResponseResult<T>>
    Type Parameters
    Name Description
    T

    SuggestionsAsync(int, SuggestionsRequest, CancellationToken)

    Get a list of suggestions for a search pattern that may be used for type-ahead

    Declaration
    public virtual Task<SuggestionsResult> SuggestionsAsync(int branch, SuggestionsRequest request, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    int branch

    The branch ID or ApiIdentifier

    SuggestionsRequest request

    The Suggestions request

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    Task<SuggestionsResult>

    OK

    Exceptions
    Type Condition
    IndexApiException

    A server side error occurred.

    WorkItemOccurrencesAsync(WorkItemOccurrencesRequest, CancellationToken)

    Get work item occurrences per branch

    Declaration
    public virtual Task<WorkItemOccurrencesResult> WorkItemOccurrencesAsync(WorkItemOccurrencesRequest request, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    WorkItemOccurrencesRequest request

    The occurrences request

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    Task<WorkItemOccurrencesResult>

    OK

    Exceptions
    Type Condition
    IndexApiException

    A server side error occurred.

    Implements

    IObjectIndexClient
    In this article
    Back to top Version 6.1.0.11rc