Exemple #1
0
        public void Handle(Leave cmd)
        {
            online.Remove(cmd.User);

            var hasJoinedBefore = members.Remove(cmd.User);
            if (hasJoinedBefore)
                Send(cmd.User, string.Format("{1} left the room {0}!", Id, cmd.User));
        }
Exemple #2
0
 Task On(Leave x) => Send(x.Room, $"{Id} left the room {x.Room}!");
Exemple #3
0
 Task On(Leave x)  => Send(x.Room, $"{Id} left the room {x.Room}!");