private void HandleConnection(NotificationData notifyObject) { var token = _table.GetOrAdd(notifyObject.Id, _ => { var args = new ConnectionArgs(notifyObject); OnConnected?.Invoke(this, args); return(new InternalTokenized { Data = notifyObject }); }); token.TimeStamp = DateTime.UtcNow.TimeOfDay; }
public ConnectionArgs(NotificationData data) { Info = data ?? throw new ArgumentNullException(); }
public void Register(NotificationData notification) { _registrator.Register(notification); }