InstanceData.cs 612 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // System.Diagnostics.InstanceData.cs
  3. //
  4. // Authors:
  5. // Jonathan Pryor ([email protected])
  6. //
  7. // (C) 2002
  8. //
  9. using System;
  10. using System.Diagnostics;
  11. namespace System.Diagnostics {
  12. public class InstanceData {
  13. private string instanceName;
  14. private CounterSample sample;
  15. public InstanceData (string instanceName, CounterSample sample)
  16. {
  17. this.instanceName = instanceName;
  18. this.sample = sample;
  19. }
  20. public string InstanceName {
  21. get {return instanceName;}
  22. }
  23. public long RawValue {
  24. get {return sample.RawValue;}
  25. }
  26. public CounterSample Sample {
  27. get {return sample;}
  28. }
  29. }
  30. }