using System; using System.Collections.Concurrent; using System.Collections.Generic; namespace Bootstrap.Admin { /// /// /// internal class DefaultOnlineUsers : IOnlineUsers { private ConcurrentDictionary _onlineUsers = new ConcurrentDictionary(); /// /// /// /// public IEnumerable OnlineUsers { get { return _onlineUsers.Values; } } /// /// /// /// /// /// /// public OnlineUser AddOrUpdate(string key, Func addValueFactory, Func updateValueFactory) => _onlineUsers.AddOrUpdate(key, addValueFactory, updateValueFactory); } }