internal bool CheckOperation(ulong guid)
{
bool ret = true;
long curTime = TimeUtility.GetLocalMilliseconds();
OperationInfo opInfo;
if (m_OperationInfos.TryGetValue(guid, out opInfo)) {
if (opInfo.m_LastTime + c_MonitorInterval < curTime) {
opInfo.m_Count = 0;
opInfo.m_LastTime = curTime;
} else {
++opInfo.m_Count;
if (opInfo.m_Count > c_MaxOperationCount) {
ret = false;
}
}
} else {
opInfo = new OperationInfo();
opInfo.m_LastTime = curTime;
m_OperationInfos.TryAdd(guid, opInfo);
}
return ret;
}