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);
        }
Beispiel #2
0
 public void Inc(MonitorKey key)
 {
     //NOP
 }
Beispiel #3
0
 public void Add(MonitorKey key, double value)
 {
     //NOP
 }
Beispiel #4
0
 public StopWatch Start(MonitorKey key)
 {
     return(new StopWatch().Start());
 }
Beispiel #5
0
 public Counter(MonitorKey key)
 {
     Key = key;
     Reset();
 }