public override bool Equals(object obj)
        {
            if (ReferenceEquals(this, obj))
            {
                return(true);
            }

            MonitorKey that = obj as MonitorKey;

            if (ReferenceEquals(that, null))
            {
                return(false);
            }

            if (!Name.Equals(that.Name))
            {
                return(false);
            }
            if (!Properties.Equals(that.Properties))
            {
                return(false);
            }

            return(true);
        }
Exemple #2
0
 public void Inc(MonitorKey key)
 {
     //NOP
 }
Exemple #3
0
 public void Add(MonitorKey key, double value)
 {
     //NOP
 }
Exemple #4
0
 public StopWatch Start(MonitorKey key)
 {
     return(new StopWatch().Start());
 }
Exemple #5
0
 public Counter(MonitorKey key)
 {
     Key = key;
     Reset();
 }