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)); }
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; }
public UserProxy(SignalRSender context) { _context = context ?? throw new ArgumentNullException(nameof(context)); }