/// <summary> /// 既定のコンストラクタ /// </summary> /// <param name="history">基となる関数呼び出し履歴</param> /// <param name="stringDelimiters">文字列を分解する区切り文字</param> public RefFunctionCallHistory(FunctionCallHistory history, IEnumerable <char> stringDelimiters) { this.Function = history.Function; this.Params = history.Params.Select(p => RefScriptVariable.Create(p, stringDelimiters)).ToList(); this.Result = history.Result; this.CreatedTime = history.CreatedTime; }
/// <summary> /// 関数呼び出しを履歴に追加します /// </summary> /// <param name="call"></param> public void PushHistory(FunctionCallHistory call) { if (!_suspendHistoryChanged) { pushHistoryInternal(call); this.DoHistoryChanged(); } }
void pushHistoryInternal(FunctionCallHistory call) { lock (_callHistory) { _callHistory.Enqueue(call); } }