Esempio n. 1
0
        public Task NotifyPixel(PixelNotification notification)
        {
            return(Task.WhenAll
                   (
                       Clients
                       .Group(notification.GameId)
                       .OnNotifyPixel(new
            {
                X = notification.X,
                Y = notification.Y,
                Color = notification.Color,
                Type = notification.Type,
                Points = notification.Points,

                Player = notification.UserName
            })
                   ));
        }
Esempio n. 2
0
 public Task NotifyPixel(PixelNotification notification)
 {
     return(SafeInvoke(nameof(NotifyPixel), notification));
 }