- else
- {
- try
- {
- sessionDataTableAdapter.CreateNewSessionKey(ref sessionKeyNullable, ref createTime);
- }
- catch (Exception ex)
- {
- Debug(String.Format("TransactionManager.CreateSessionKey(): lockRetryEnable={0}, sessionKeyNullable={1}, createTime={2}, sessionDataTableAdapter is null={3}, ex.Message={4}",
- lockRetryEnable, sessionKeyNullable, createTime, (sessionDataTableAdapter == null), ex.Message));
- }
- if (sessionKeyNullable.HasValue && sessionKeyNullable.Value > 0)
- {
- KeyValuePair<long, DateTime> createdKey = new KeyValuePair<long, DateTime>(sessionKeyNullable.Value, createTime.Value);
- return createdKey;
- }
- else
- {
- Debug(String.Format("TransactionManager.CreateSessionKey(): lockRetryEnable={0}, InvalidSessionKey", lockRetryEnable));
- throw new TransactionException(TransactionException.ErrorType.InvalidSessionKey, null);
- }
- }
一个定期的错误
最新推荐文章于 2022-09-28 16:45:06 发布