private void Report(ITargetReportable message) { var newState = message.Zone.Equals("ABSENT") ? "Absent" : "Present"; _location = message.Zone; _state = newState; StopTimer(); _tagReporter.Tell(message, ActorRefs.NoSender); }
private void Cache(ITargetReportable message) { _candidate = message.Zone; _state = "Waiting"; _t.Change(_amqpNoiseTimer, Timeout.Infinite); }