Search Results for

    Show / Hide Table of Contents

    Class Transport<TConnectionSettings>

    Inheritance
    object
    Transport<TConnectionSettings>
    Implements
    ITransport<TConnectionSettings>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OpenSearch.Net
    Assembly: OpenSearch.Net.dll
    Syntax
    public class Transport<TConnectionSettings> : ITransport<TConnectionSettings> where TConnectionSettings : class, IConnectionConfigurationValues
    Type Parameters
    Name Description
    TConnectionSettings

    Constructors

    | Edit this page View Source

    Transport(TConnectionSettings)

    Transport coordinates the client requests over the connection pool nodes and is in charge of falling over on different nodes

    Declaration
    public Transport(TConnectionSettings configurationValues)
    Parameters
    Type Name Description
    TConnectionSettings configurationValues

    The connection settings to use for this transport

    | Edit this page View Source

    Transport(TConnectionSettings, IRequestPipelineFactory, IDateTimeProvider, IMemoryStreamFactory)

    Transport coordinates the client requests over the connection pool nodes and is in charge of falling over on different nodes

    Declaration
    public Transport(TConnectionSettings configurationValues, IRequestPipelineFactory pipelineProvider, IDateTimeProvider dateTimeProvider, IMemoryStreamFactory memoryStreamFactory)
    Parameters
    Type Name Description
    TConnectionSettings configurationValues

    The connection settings to use for this transport

    IRequestPipelineFactory pipelineProvider

    In charge of create a new pipeline, safe to pass null to use the default

    IDateTimeProvider dateTimeProvider

    The date time proved to use, safe to pass null to use the default

    IMemoryStreamFactory memoryStreamFactory

    The memory stream provider to use, safe to pass null to use the default

    Properties

    | Edit this page View Source

    Settings

    Declaration
    public TConnectionSettings Settings { get; }
    Property Value
    Type Description
    TConnectionSettings

    Methods

    | Edit this page View Source

    RequestAsync<TResponse>(HttpMethod, string, CancellationToken, PostData, IRequestParameters)

    Declaration
    public Task<TResponse> RequestAsync<TResponse>(HttpMethod method, string path, CancellationToken cancellationToken, PostData data = null, IRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new()
    Parameters
    Type Name Description
    HttpMethod method
    string path
    CancellationToken cancellationToken
    PostData data
    IRequestParameters requestParameters
    Returns
    Type Description
    Task<TResponse>
    Type Parameters
    Name Description
    TResponse
    | Edit this page View Source

    Request<TResponse>(HttpMethod, string, PostData, IRequestParameters)

    Declaration
    public TResponse Request<TResponse>(HttpMethod method, string path, PostData data = null, IRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new()
    Parameters
    Type Name Description
    HttpMethod method
    string path
    PostData data
    IRequestParameters requestParameters
    Returns
    Type Description
    TResponse
    Type Parameters
    Name Description
    TResponse

    Implements

    ITransport<TConnectionSettings>

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Constructors
      • Transport(TConnectionSettings)
      • Transport(TConnectionSettings, IRequestPipelineFactory, IDateTimeProvider, IMemoryStreamFactory)
    • Properties
      • Settings
    • Methods
      • RequestAsync<TResponse>(HttpMethod, string, CancellationToken, PostData, IRequestParameters)
      • Request<TResponse>(HttpMethod, string, PostData, IRequestParameters)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX