示例#1
0
        public static void Send(this ActorMessageSender self, IActorMessage message)
        {
            if (message == null)
            {
                throw new Exception($"actor send message is null");
            }
            ActorTask task = new ActorTask(message);

            self.Add(task);
        }
        public static void Send(this ActorMessageSender self, IActorNotify notify)
        {
            ActorTask task = new ActorTask(notify);

            self.Add(task);
        }