Ejemplo n.º 1
0
 protected Sink(ISinkOwner owner, string name, int order) : base(owner)
 {
     m_Levels = new Filters.LevelsList();
     Name     = name.IsNullOrWhiteSpace() ? "{0}.{1}".Args(GetType().Name, FID.Generate().ID.ToString("X")) : name;
     m_Order  = order;
     ((ISinkOwnerRegistration)owner).Register(this);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Override to perform derivative-specific configuration
        /// </summary>
        protected override void DoConfigure(IConfigSectionNode node)
        {
            base.DoConfigure(node);

            var nFilter = node[CONFIG_FILTER_SECT];

            if (nFilter.Exists)
            {
                m_Filter = FactoryUtils.MakeAndConfigure <Filters.LogMessageFilter>(nFilter, typeof(Filters.LogMessageFilter));
            }

            m_Levels = Filters.LevelsList.Parse(node.AttrByName(CONFIG_LEVELS_ATTR).Value);
        }
Ejemplo n.º 3
0
 internal Sink(ISinkOwner owner, bool _) : base(owner)
 {
     m_Levels = new Filters.LevelsList();
     //this overload purposely does not do registration with owner
 }