Пример #1
0
        private Target GetOrAddTargetByName(string targetName, TargetStartedEventArgs e = null)
        {
            Target result = _targetNameToTargetMap.GetOrAdd(targetName, key => new Target(key, e));

            if (e != null)
            {
                result.TryUpdate(e);
            }

            return(result);
        }