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;
        }
Beispiel #2
0
 /// <summary>
 /// 加载操作链
 /// </summary>
 /// <param name="chain"></param>
 public void LoadOperationChain(OperationChain chain)
 {
     this.chain  = chain;
     lastCallPos = chain.CurrentPos;
     postLoadChainEvent?.Invoke();
 }