コード例 #1
0
        private void Report(ITargetReportable message)
        {
            var newState = message.Zone.Equals("ABSENT") ? "Absent" : "Present";

            _location = message.Zone;
            _state    = newState;
            StopTimer();
            _tagReporter.Tell(message, ActorRefs.NoSender);
        }
コード例 #2
0
 private void Cache(ITargetReportable message)
 {
     _candidate = message.Zone;
     _state     = "Waiting";
     _t.Change(_amqpNoiseTimer, Timeout.Infinite);
 }