Interface IConnectionStringSettings
Connection String Settings
Namespace: Gossip.ConnectionStrings
Assembly: Gossip.dll
Syntax
public interface IConnectionStringSettings
Properties
| Improve this Doc View SourceApplicationName
Name of the application that is connecting to the database
Declaration
string ApplicationName { get; }
Property Value
| Type | Description |
|---|---|
| String |
ConnectRetryCount
The number of reconnections attempted after identifying that there was an idle connection failure. This must be an integer between 0 and 255. Default is 1. Set to 0 to disable reconnecting on idle connection failures. An ArgumentException will be thrown if set to a value outside of the allowed range.
Declaration
int ConnectRetryCount { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
ConnectRetryInterval
Amount of time (in seconds) between each reconnection attempt after identifying that there was an idle connection failure. This must be an integer between 1 and 60. The default is 10 seconds. An ArgumentException will be thrown if set to a value outside of the allowed range.
Declaration
int ConnectRetryInterval { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Database
The database name
Declaration
string Database { get; }
Property Value
| Type | Description |
|---|---|
| String |
DefaultCommandTimeout
The time in seconds that the connection will wait for a command to execute
Declaration
int DefaultCommandTimeout { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
LoadBalanceTimeout
Gets or sets the minimum time, in seconds, for the connection to live in the connection pool before being destroyed.
Declaration
int LoadBalanceTimeout { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
MachineName
Name of the machine that is connecting to the database
Declaration
string MachineName { get; }
Property Value
| Type | Description |
|---|---|
| String |
MaxPoolSize
The max number of database connection objects for the database connection string
Declaration
int MaxPoolSize { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
MultiSubnetFailover
If your application is connecting to an AlwaysOn availability group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of and connection to the (currently) active server.
Declaration
bool MultiSubnetFailover { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Password
Database connection password
Declaration
string Password { get; }
Property Value
| Type | Description |
|---|---|
| String |
Server
The database server name (e.g. localhost)
Declaration
string Server { get; }
Property Value
| Type | Description |
|---|---|
| String |
UseIntegratedSecurity
Use Windows Authentication to connect to the database server.
Declaration
bool UseIntegratedSecurity { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Username
Username of user/application that is connecting to the database
Declaration
string Username { get; }
Property Value
| Type | Description |
|---|---|
| String |