Exemplo n.º 1
0
        public void HandleCommandExecuted(CommandEvent cmd)
        {
            Interlocked.Increment(ref _count);

            lock (_lock)
            {
                if (_lastCommands.Count > 50)
                    _lastCommands.Clear();

                _lastCommands.Add(cmd);
            }
        }
Exemplo n.º 2
0
        public void HandleCommandExecuted(CommandEvent cmd)
        {
            Interlocked.Increment(ref _count);

            lock (_lock)
            {
                if (_lastCommands.Count > 50)
                {
                    _lastCommands.Clear();
                }

                _lastCommands.Add(cmd);
            }
        }