Table of Contents

Class ClientOptionsBuilder

Namespace
AnyProtocol.Configuration
Assembly
AnyProtocol.dll

Provides the client options builder implementation used by AnyProtocol applications.

public sealed class ClientOptionsBuilder
Inheritance
ClientOptionsBuilder
Inherited Members

Constructors

ClientOptionsBuilder()

public ClientOptionsBuilder()

Methods

RequireOrdering(TransportOrdering)

Requires the selected transport to guarantee the specified ordering.

public ClientOptionsBuilder RequireOrdering(TransportOrdering ordering)

Parameters

ordering TransportOrdering

Returns

ClientOptionsBuilder

UseProtocol(ProtocolKey)

Performs the use protocol operation.

public ClientOptionsBuilder UseProtocol(ProtocolKey protocol)

Parameters

protocol ProtocolKey

The protocol registration key.

Returns

ClientOptionsBuilder

The result of the use protocol operation.

UseTransport(string)

Performs the use transport operation.

public ClientOptionsBuilder UseTransport(string name)

Parameters

name string

The registered instance name.

Returns

ClientOptionsBuilder

The result of the use transport operation.

WithRetry(int)

Performs the with retry operation.

public ClientOptionsBuilder WithRetry(int maxAttempts)

Parameters

maxAttempts int

The max attempts.

Returns

ClientOptionsBuilder

The result of the with retry operation.

WithTimeout(TimeSpan)

Performs the with timeout operation.

public ClientOptionsBuilder WithTimeout(TimeSpan timeout)

Parameters

timeout TimeSpan

The maximum time allowed for the operation.

Returns

ClientOptionsBuilder

The result of the with timeout operation.