Merge pull request #4453 from lambdageek/bug-49721
[mono.git] / mcs / class / System.Web / System.Web.Management / WebBaseEvent.cs
1 //
2 // System.Web.Management.WebBaseEvent.cs
3 //
4 // Authors:
5 //      Duncan Mak (duncan@ximian.com)
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
29 using System;
30
31 namespace System.Web.Management
32 {
33         public class WebBaseEvent
34         {
35                 string message;
36                 object event_source;
37                 int event_code, event_detail_code;
38
39                 protected WebBaseEvent (string message, object eventSource, int eventCode)
40                 {
41                         this.message = message;
42                         this.event_source = eventSource;
43                         this.event_code = eventCode;
44                 }
45
46                 protected WebBaseEvent (string message, object eventSource, int eventCode, int eventDetailCode)
47                 {
48                         this.message = message;
49                         this.event_source = eventSource;
50                         this.event_code = eventCode;
51                         this.event_detail_code = eventDetailCode;
52                 }
53                 
54                 public static WebApplicationInformation ApplicationInformation {
55                         get {
56                                 throw new NotImplementedException ();
57                         }
58                 }
59
60                 public int EventCode {
61                         get {
62                                 return event_code;
63                         }
64                 }
65
66                 public int EventDetailCode {
67                         get {
68                                 return event_detail_code;
69                         }
70                 }
71
72                 public Guid EventID {
73                         get {
74                                 throw new NotImplementedException ();
75                         }
76                 }
77
78                 public long EventSequence {
79                         get {
80
81                                 throw new NotImplementedException ();
82                         }
83                 }
84
85                 public object EventSource {
86                         get {
87                                 return event_source;
88                         }
89                 }
90
91                 public DateTime EventTime {
92                         get {
93                                 throw new NotImplementedException ();
94                         }
95                 }
96
97                 public DateTime EventTimeUtc {
98                         get {
99                                 throw new NotImplementedException ();
100                         }
101                 }
102
103                 public string Message {
104                         get {
105                                 return message;
106                         }
107                 }
108
109                 public virtual void FormatCustomEventDetails (WebEventFormatter formatter)
110                 {
111                         throw new NotImplementedException ();
112                 }
113
114                 public virtual void Raise ()
115                 {
116                         throw new NotImplementedException ();
117                 }
118
119                 public static void Raise (WebBaseEvent eventRaised)
120                 {
121                         throw new NotImplementedException ();
122                 }
123
124                 public override string ToString ()
125                 {
126                         throw new NotImplementedException ();
127                 }
128
129                 public virtual string ToString (bool includeAppInfo, bool includeCustomEventDetails)
130                 {
131                         throw new NotImplementedException ();
132                 }
133         }
134 }