Class ConnectorAddOptionsBuilder
Inheritance
System.Object
ConnectorAddOptionsBuilder
Namespace: Steeltoe.Connectors
Assembly: Steeltoe.Connectors.dll
Syntax
public sealed class ConnectorAddOptionsBuilder : object
Properties
| Edit this page View SourceCacheConnection
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.
Declaration
public bool CacheConnection { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
CreateConnection
Gets or sets the callback that creates the driver-specific connection object, which is invoked when GetConnection() is called.
Declaration
public ConnectorCreateConnection CreateConnection { get; set; }
Property Value
Type | Description |
---|---|
ConnectorCreateConnection |
CreateHealthContributor
Gets or sets the callback that creates an IHealthContributor for this connector, in case EnableHealthChecks is
true
.
Declaration
public ConnectorCreateHealthContributor CreateHealthContributor { get; set; }
Property Value
Type | Description |
---|---|
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.
Declaration
public bool EnableHealthChecks { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |