public static void PushOperation(object item, DateTime dateTime) { var offset = _offsetContext.Value?.Elapsed; var operation = new Operation(item, dateTime, offset); var next = new OperationChain() { Operation = operation, Next = _chainContext.Value }; _chainContext.Value = next; }
/// <summary> /// 加载操作链 /// </summary> /// <param name="chain"></param> public void LoadOperationChain(OperationChain chain) { this.chain = chain; lastCallPos = chain.CurrentPos; postLoadChainEvent?.Invoke(); }