public override void Update() { this.TimeNow = (uint)(TimeHelper.ClientNow() - this.m_StartTime); this.Recv(); foreach (var kv in this.m_LocalConnChannels) { kv.Value.Update(); } while (this.m_RemovedChannels.Count > 0) { long id = this.m_RemovedChannels.Dequeue(); KChannel channel; if (!this.m_LocalConnChannels.TryGetValue(id, out channel)) { continue; } this.m_LocalConnChannels.Remove(id); channel.Dispose(); } }
public virtual void Update() { this.TimeNow = (uint)(TimeHelper.ClientNow() - this.m_StartTime); }
public AService() { this.m_StartTime = TimeHelper.ClientNow(); this.TimeNow = (uint)TimeHelper.ClientNow(); }