2
0

WebBaseEvent.cs 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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. using System;
  29. namespace System.Web.Management
  30. {
  31. public class WebBaseEvent
  32. {
  33. string message;
  34. object event_source;
  35. int event_code, event_detail_code;
  36. protected WebBaseEvent (string message, object event_source, int event_code)
  37. {
  38. this.message = message;
  39. this.event_source = event_source;
  40. this.event_code = event_code;
  41. }
  42. protected WebBaseEvent (string message, object event_source, int event_code, int event_detail_code)
  43. {
  44. this.message = message;
  45. this.event_source = event_source;
  46. this.event_code = event_code;
  47. this.event_detail_code = event_detail_code;
  48. }
  49. public static WebApplicationInformation ApplicationInformation {
  50. get {
  51. throw new NotImplementedException ();
  52. }
  53. }
  54. public int EventCode {
  55. get {
  56. return event_code;
  57. }
  58. }
  59. public int EventDetailCode {
  60. get {
  61. return event_detail_code;
  62. }
  63. }
  64. public Guid EventID {
  65. get {
  66. throw new NotImplementedException ();
  67. }
  68. }
  69. public long EventSequence {
  70. get {
  71. throw new NotImplementedException ();
  72. }
  73. }
  74. public object EventSource {
  75. get {
  76. return event_source;
  77. }
  78. }
  79. public DateTime EventTime {
  80. get {
  81. throw new NotImplementedException ();
  82. }
  83. }
  84. public DateTime EventTimeUtc {
  85. get {
  86. throw new NotImplementedException ();
  87. }
  88. }
  89. public string Message {
  90. get {
  91. return message;
  92. }
  93. }
  94. public virtual void FormatCustomEventDetails (WebEventFormatter formatter)
  95. {
  96. throw new NotImplementedException ();
  97. }
  98. public virtual void Raise ()
  99. {
  100. throw new NotImplementedException ();
  101. }
  102. public static void Raise (WebBaseEvent event_raised)
  103. {
  104. throw new NotImplementedException ();
  105. }
  106. public override string ToString ()
  107. {
  108. throw new NotImplementedException ();
  109. }
  110. public virtual string ToString (bool include_app_info, bool include_custom_event_details)
  111. {
  112. throw new NotImplementedException ();
  113. }
  114. }
  115. }