CK.Monitoring.ParentedLogEntry.CollectPath C# (CSharp) Method

CollectPath() public method

Collects the path of this ParentedLogEntry, optionally terminated with this entry.
public CollectPath ( Action collector, bool addThis = false ) : void
collector Action Action for each item.
addThis bool Set it to true to append to also call the collector with this entry.
return void
        public void CollectPath( Action<ParentedLogEntry> collector, bool addThis = false )
        {
            if( collector == null ) throw new ArgumentNullException( "collector" );

            if( Parent != null ) Parent.DoGetPath( collector );
            if( addThis ) collector( this );
        }