Example #1
0
        public void Handle(AddPanelNotificationEvent @event)
        {
            var panelNotification =
                new PanelNotification(@event.Id, @event.Title, @event.Body, @event.PanelNotificationType, @event.AdditionalData);

            _repository.Add(panelNotification);
            SignalRSender.NotifyShopCreated(new PanelNotificationMessage(@event.Id, @event.Title, @event.Body, @event.PanelNotificationType, @event.AdditionalData));
        }
Example #2
0
 public PlayerProxy(SignalRSender context, string roomId)
 {
     if (context == null)
     {
         throw new ArgumentNullException(nameof(context));
     }
     if (string.IsNullOrEmpty(roomId))
     {
         throw new ArgumentException("Room id cannot be null or empty.", nameof(roomId));
     }
     _context = context;
     _roomId  = roomId;
 }
Example #3
0
 public UserProxy(SignalRSender context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }