コード例 #1
0
 public PostgresSessionStateRepository(string connectionString, int commandTimeout, int?retryInterval = 1000, int?retryNum = 10)
 {
     this._retryIntervalMilSec = retryInterval.HasValue ? retryInterval.Value : 1000;
     this._connectString       = connectionString;
     this._maxRetryNum         = retryNum.HasValue ? retryNum.Value : 10;
     this._commandHelper       = new NpgsqlCommandHelper(commandTimeout);
 }
 public SqlInMemoryTableSessionStateRepository(string connectionString, int commandTimeout, int?retryInterval, int?retryNum)
 {
     this._retryIntervalMilSec = retryInterval.HasValue ? retryInterval.Value : 1;
     this._connectString       = connectionString;
     this._maxRetryNum         = retryNum.HasValue ? retryNum.Value : 10;
     this._commandHelper       = new NpgsqlCommandHelper(commandTimeout);
 }