コード例 #1
0
 public Unit Tell(object message, ProcessId sender, Message.TagSpec tag) =>
 ProcessOp.IO(() =>
 {
     message = Inbox.ValidateMessageType(message, sender);
     return(Inbox.Tell(message, sender));
 });
コード例 #2
0
 public Unit Tell(object message, ProcessId sender, Message.TagSpec tag) =>
 transactionalIO
         ? Inbox.Tell(Inbox.ValidateMessageType(message, sender), sender)
         : ProcessOp.IO(() => Inbox.Tell(Inbox.ValidateMessageType(message, sender), sender));
コード例 #3
0
        public Unit Tell(object message, Schedule schedule, ProcessId sender, Message.TagSpec tag)
        {
            var sessionId = ActorContext.SessionId;

            return(LocalScheduler.Push(schedule, Actor.Id, m => Inbox.Tell(Inbox.ValidateMessageType(m, sender), sender, sessionId), message));
        }
コード例 #4
0
 public Unit Tell(object message, Schedule schedule, ProcessId sender, Message.TagSpec tag) =>
 LocalScheduler.Push(schedule, Actor.Id, m => Inbox.Tell(Inbox.ValidateMessageType(m, sender), sender), message);
コード例 #5
0
 public Unit Tell(object message, ProcessId sender, Message.TagSpec tag) =>
 Inbox.Tell(message, sender);