private void _timer_Elapsed(object sender, ElapsedEventArgs e) { if (_datus.Count != 0) { IDataOpItem d = _datus.Dequeue(); d.Action(_datacenter); } }
/// <summary> /// 执行操作 /// </summary> /// <param name="di"></param> /// <param name="replied">默认不回执</param> public void Execute(IDataOpItem di, bool replied = false) { di.Replied = replied; di.Action(this); }