in Amazon.QLDB.Driver/driver/BaseQldbDriverBuilder.cs [154:171]
private protected void PrepareBuild()
{
this.SessionConfig ??= new AmazonQLDBSessionConfig();
// Set SDK retry to 0 in order to let driver handle retry logic.
this.SessionConfig.MaxErrorRetry = 0;
this.sessionClient = this.Credentials == null ? new AmazonQLDBSessionClient(this.SessionConfig)
: new AmazonQLDBSessionClient(this.Credentials, this.SessionConfig);
this.sessionClient.BeforeRequestEvent += this.SetUserAgent;
ValidationUtils.AssertStringNotEmpty(this.LedgerName, "ledgerName");
if (this.maxConcurrentTransactions == 0)
{
this.maxConcurrentTransactions = this.SessionConfig.GetType().GetProperty("MaxConnectionsPerServer") ==
null ? int.MaxValue : this.GetMaxConn();
}
}