JinagaClientOptions

The JinagaClientOptions class is used to configure a JinagaClient. It provides various options for setting the HTTP endpoint, authentication provider, and logging.

Fields

DefaultReplicatorEndpoint

static readonly string DefaultReplicatorEndpoint = "http://localhost:8080/jinaga/"

The default endpoint of the Docker container running the Jinaga replicator. If you are using a Docker container for local development, set the HttpEndpoint property to this value.

Value:

  • The default replicator URL: "http://localhost:8080/jinaga/".

Properties

HttpEndpoint

string HttpEndpoint { get; set; }

Specifies the endpoint of the Jinaga replicator. If this property is set to null, the client operates in local mode without a network connection.

Returns:

  • The replicator URL as a string or null for local operation.

HttpAuthenticationProvider

IHttpAuthenticationProvider HttpAuthenticationProvider { get; set; }

Specifies the strategy for authenticating with the Jinaga replicator. Create an instance of your own class that implements IHttpAuthenticationProvider to provide authentication details. The Jinaga.Maui library provides a default implementation of this interface.

Returns:

  • An instance of IHttpAuthenticationProvider used to authenticate HTTP requests.

LoggerFactory

ILoggerFactory LoggerFactory { get; set; }

Specifies the factory for configuring logging. If not provided, logging is disabled by default.

Returns:

  • An instance of ILoggerFactory used to configure logging, or null if logging is disabled.

Continue With

IHttpAuthenticationProvider

Jinaga is a product of Jinaga LLC.

Michael L Perry, President