Add the ability to change the SQL Write Lock TimeOut (#9744)
* Add the ability to change the SQL Write Lock TimeOut * Needed to add a default setting to to the settings for tests
This commit is contained in:
committed by
GitHub
parent
63cf3a489d
commit
37402c5ba4
@@ -391,5 +391,28 @@ namespace Umbraco.Core.Configuration
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// An int value representing the time in milliseconds to lock the database for a write operation
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The default value is 1800 milliseconds
|
||||
/// </remarks>
|
||||
/// <value>The timeout in milliseconds.</value>
|
||||
public int SqlWriteLockTimeOut
|
||||
{
|
||||
get
|
||||
{
|
||||
try
|
||||
{
|
||||
return int.Parse(ConfigurationManager.AppSettings[Constants.AppSettings.SqlWriteLockTimeOut]);
|
||||
}
|
||||
catch
|
||||
{
|
||||
return 1800;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,5 +72,10 @@
|
||||
/// Gets the location of temporary files.
|
||||
/// </summary>
|
||||
string LocalTempPath { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the write lock timeout.
|
||||
/// </summary>
|
||||
int SqlWriteLockTimeOut { get; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user