Class Transport<TConnectionSettings>
Inheritance
Transport<TConnectionSettings>
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
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
Returns
Type |
Description |
TResponse |
|
Type Parameters
Name |
Description |
TResponse |
|
Implements
Extension Methods