Esempio n. 1
0
        /// <summary>
        /// </summary>
        /// <param name="analyser"></param>
        public void Remove(IDataSourceAnalyser analyser)
        {
            lock (_syncRoot)
            {
                AnalyserTemplate template;
                if (analyser != null && _analysers.TryGetValue(analyser, out template))
                {
                    _template.Remove(template);
                    _analysers.Remove(analyser);

                    analyser.Dispose();
                }
            }
        }
Esempio n. 2
0
        /// <summary>
        /// </summary>
        /// <param name="analyser"></param>
        public void Remove(IDataSourceAnalyser analyser)
        {
            var tmp = analyser as DataSourceAnalyser;

            lock (_syncRoot)
            {
                AnalyserTemplate template;
                if (tmp != null && _analysers.TryGetValue(tmp, out template))
                {
                    _template.Remove(template);
                    _analysers.Remove(tmp);

                    tmp?.Dispose();
                }
            }
        }