WebBaseEvent.cs 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. //
  2. // System.Web.Management.WebBaseEvent.cs
  3. //
  4. // Authors:
  5. // Duncan Mak ([email protected])
  6. //
  7. // Permission is hereby granted, free of charge, to any person obtaining
  8. // a copy of this software and associated documentation files (the
  9. // "Software"), to deal in the Software without restriction, including
  10. // without limitation the rights to use, copy, modify, merge, publish,
  11. // distribute, sublicense, and/or sell copies of the Software, and to
  12. // permit persons to whom the Software is furnished to do so, subject to
  13. // the following conditions:
  14. //
  15. // The above copyright notice and this permission notice shall be
  16. // included in all copies or substantial portions of the Software.
  17. //
  18. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  19. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  20. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  21. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  22. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  23. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  24. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  25. //
  26. // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
  27. //
  28. #if NET_2_0
  29. using System;
  30. namespace System.Web.Management
  31. {
  32. public class WebBaseEvent
  33. {
  34. string message;
  35. object event_source;
  36. int event_code, event_detail_code;
  37. protected WebBaseEvent (string message, object event_source, int event_code)
  38. {
  39. this.message = message;
  40. this.event_source = event_source;
  41. this.event_code = event_code;
  42. }
  43. protected WebBaseEvent (string message, object event_source, int event_code, int event_detail_code)
  44. {
  45. this.message = message;
  46. this.event_source = event_source;
  47. this.event_code = event_code;
  48. this.event_detail_code = event_detail_code;
  49. }
  50. public static WebApplicationInformation ApplicationInformation {
  51. get {
  52. throw new NotImplementedException ();
  53. }
  54. }
  55. public int EventCode {
  56. get {
  57. return event_code;
  58. }
  59. }
  60. public int EventDetailCode {
  61. get {
  62. return event_detail_code;
  63. }
  64. }
  65. public Guid EventID {
  66. get {
  67. throw new NotImplementedException ();
  68. }
  69. }
  70. public long EventSequence {
  71. get {
  72. throw new NotImplementedException ();
  73. }
  74. }
  75. public object EventSource {
  76. get {
  77. return event_source;
  78. }
  79. }
  80. public DateTime EventTime {
  81. get {
  82. throw new NotImplementedException ();
  83. }
  84. }
  85. public DateTime EventTimeUtc {
  86. get {
  87. throw new NotImplementedException ();
  88. }
  89. }
  90. public string Message {
  91. get {
  92. return message;
  93. }
  94. }
  95. public virtual void FormatCustomEventDetails (WebEventFormatter formatter)
  96. {
  97. throw new NotImplementedException ();
  98. }
  99. public virtual void Raise ()
  100. {
  101. throw new NotImplementedException ();
  102. }
  103. public static void Raise (WebBaseEvent event_raised)
  104. {
  105. throw new NotImplementedException ();
  106. }
  107. public override string ToString ()
  108. {
  109. throw new NotImplementedException ();
  110. }
  111. public virtual string ToString (bool include_app_info, bool include_custom_event_details)
  112. {
  113. throw new NotImplementedException ();
  114. }
  115. }
  116. }
  117. #endif