📄 invalidcontextstateexception.cs
字号:
using System;
namespace Framework.Transactions
{
/// <summary>
/// Summary description for InvalidContextStateException.
/// </summary>
public class InvalidContextStateException : TransactionContextException
{
private TransactionContextState _currentState;
private TransactionContextState[] _allowedStates;
public InvalidContextStateException() : base() { }
public InvalidContextStateException(string message) : base(message) { }
public InvalidContextStateException(
TransactionContextState currentState, TransactionContextState[] allowedStates, string message)
: base(message)
{
_currentState = currentState;
_allowedStates = allowedStates;
}
public TransactionContextState CurrentState
{
get { return _currentState; }
}
public TransactionContextState[] AllowedStates
{
get { return _allowedStates; }
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -