Graphite.System.AppPoolListener.LoadCounterName C# (CSharp) Method

LoadCounterName() public method

public LoadCounterName ( ) : bool
return bool
        public bool LoadCounterName()
        {
            string newName = this.GetCounterName(this.appPoolName);

            if (!string.IsNullOrEmpty(newName) && this.counterName != newName)
            {
                if (this.counterListener != null)
                {
                    this.counterListener.Dispose();

                    this.counterListener = null;
                }

                this.counterName = newName;

                return true;
            }

            return false;
        }