public void InitializeNotifications(SignalRUsers signalRUsers)
 {
     _timer = new Timer(UpdateNotifications, null, _updateInterval, _updateInterval);
     client_ids.TryAdd(client_ids.Count.ToString(), signalRUsers);
     BroadcastState("started");
     BroadcastCurrentClients();
 }
Beispiel #2
0
        public void Initialize(string username)
        {
            SignalRUsers signalRUsers = new SignalRUsers();

            signalRUsers.srClientId = Context.ConnectionId;
            signalRUsers.username   = username;

            _notificationTicker.InitializeNotifications(signalRUsers);
        }