Table of Contents

Class ConnectorAddOptionsBuilder

Namespace
Steeltoe.Connectors
Assembly
Steeltoe.Connectors.dll
public sealed class ConnectorAddOptionsBuilder
Inheritance
ConnectorAddOptionsBuilder
Inherited Members

Properties

CacheConnection

Gets or sets a value indicating whether the result of CreateConnection is cached and returned on subsequent calls to GetConnection(). The default value varies per driver, based on documented best practices.

public bool CacheConnection { get; set; }

Property Value

bool

CreateConnection

Gets or sets the callback that creates the driver-specific connection object, which is invoked when GetConnection() is called.

public ConnectorCreateConnection CreateConnection { get; set; }

Property Value

ConnectorCreateConnection

CreateHealthContributor

Gets or sets the callback that creates an IHealthContributor for this connector, in case EnableHealthChecks is true.

public ConnectorCreateHealthContributor CreateHealthContributor { get; set; }

Property Value

ConnectorCreateHealthContributor

EnableHealthChecks

Gets or sets a value indicating whether contribution to Steeltoe health checks is enabled for this connector. true by default, unless ASP.NET Core health checks are registered in the service container.

public bool EnableHealthChecks { get; set; }

Property Value

bool