ProcessModelInfo.cs 1016 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // System.Web.ProcessModelInfo
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2002
  8. using System;
  9. namespace System.Web {
  10. public class ProcessModelInfo {
  11. #region Fields
  12. #endregion
  13. #region Constructors
  14. public ProcessModelInfo ()
  15. {
  16. }
  17. #endregion
  18. #region Properties
  19. [MonoTODO ("Retrieve appropriate variables from worker")]
  20. public static ProcessInfo GetCurrentProcessInfo ()
  21. {
  22. HttpContext httpContext;
  23. DateTime startTime;
  24. TimeSpan age;
  25. int processID;
  26. int requestCount;
  27. ProcessStatus status;
  28. ProcessShutdownReason shutdownReason;
  29. int peakMemoryUsed;
  30. httpContext = HttpContext.Current;
  31. return new ProcessInfo (startTime, age, processID, requestCount, status, shutdownReason, peakMemoryUsed);
  32. }
  33. [MonoTODO ("Retrieve process information.")]
  34. public static ProcessInfo[] GetHistory ()
  35. {
  36. throw new NotImplementedException ();
  37. }
  38. #endregion // Methods
  39. }
  40. }