コード例 #1
0
        public void Remove(IUserIdentifier userIdentifier)
        {
            var identifier = userIdentifier.GetKey();

            if (_map.TryGetValue(identifier, out var stoppingAction))
            {
                stoppingAction.IsStopRequested = true;
                _map.Remove(identifier);
            }
        }
コード例 #2
0
 public void Add(IUserIdentifier userIdentifier, StoppingAction stoppingAction)
 {
     _map.Add(userIdentifier.GetKey(), stoppingAction);
 }