private bool CheckThreatLevel(NeighborThreatLevel thisThreat) { if (m_threatLevel > thisThreat) { return(false); } return(true); }
public NeighborHandler(INeighborService service, IAuthenticationService authentication, IConfigSource config) : base("POST", "/region") { m_NeighborService = service; m_AuthenticationService = authentication; IConfig neighborsConfig = config.Configs["NeighborService"]; if (neighborsConfig != null) { m_threatLevel = (NeighborThreatLevel)Enum.Parse(typeof(NeighborThreatLevel), neighborsConfig.GetString("ThreatLevel", "Low")); } }
private bool CheckThreatLevel(NeighborThreatLevel thisThreat) { if (m_threatLevel > thisThreat) return false; return true; }