Example #1
0
        /// <summary>
        /// Creates the xmlExecutionTracerServiceConfiguration section handler.
        /// </summary>
        ///
        /// <param name="parent">
        /// Parent object.
        /// </param>
        ///
        /// <param name="configContext">
        /// Configuration context object.
        /// </param>
        ///
        /// <param name="section">
        /// Section XML node.
        /// </param>
        ///
        /// <returns>
        /// The XmlExecutionTracerServiceSection handler object.
        /// </returns>
        public object Create(object parent, object configContext, XmlNode section)
        {
            XmlExecutionTracerServiceSection cfgSection = new XmlExecutionTracerServiceSection();

            cfgSection.Load(section);

            return(cfgSection);
        }
        static XmlExecutionTracerService()
        {
            _locker = new object();

            _config = XmlExecutionTracerServiceSectionHandler.GetSection();
            if (_config != null)
            {
                _outputPath = _config.OutputPath;
                if (!Path.IsPathRooted(_outputPath))
                {
                    _outputPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, _outputPath);
                }
            }
        }