Beispiel #1
0
        public override Value Evaluate()
        {
            var self = RegionManager.Regions["self"];

            RejectNull(self, LOCATION, "Self not set");
            arguments.FromSelf = true;
            return(MessagingState.Send(self, message, arguments));
        }
Beispiel #2
0
        public override Value Evaluate()
        {
            var cls = Regions["class"];

            Reject(cls.IsEmpty, LOCATION, $"{message} message called out of class");
            arguments.FromSelf = true;
            return(MessagingState.Send(cls, message, arguments));
        }
Beispiel #3
0
        public override Value Evaluate()
        {
            var self = RegionManager.Regions["self"];

            self.Must().Not.BeNull().OrThrow(LOCATION, () => "Self not set");
            arguments.FromSelf = true;

            return(MessagingState.Send(self, message, arguments));
        }
Beispiel #4
0
        public override Value Evaluate()
        {
            var cls = Regions["class"];

            cls.IsEmpty.Must().Not.BeTrue().OrThrow(LOCATION, () => $"{message} message called out of class");
            arguments.FromSelf = true;

            return(MessagingState.Send(cls, message, arguments));
        }