Document HTTP_PROXY and NO_PROXY environment variables.
[mono.git] / mcs / class / System / System.Diagnostics / EventSourceCreationData.cs
1 //
2 // System.Diagnostics.EventSourceCreationData
3 //
4 // Author:
5 //      Gert Driesen <driesen@users.sourceforge.net>
6 //
7 // Copyright (C) 2006 Novell, Inc (http://www.novell.com)
8 //
9 //
10 // Permission is hereby granted, free of charge, to any person obtaining
11 // a copy of this software and associated documentation files (the
12 // "Software"), to deal in the Software without restriction, including
13 // without limitation the rights to use, copy, modify, merge, publish,
14 // distribute, sublicense, and/or sell copies of the Software, and to
15 // permit persons to whom the Software is furnished to do so, subject to
16 // the following conditions:
17 // 
18 // The above copyright notice and this permission notice shall be
19 // included in all copies or substantial portions of the Software.
20 // 
21 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
25 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
26 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
27 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 //
29
30 namespace System.Diagnostics
31 {
32         public class EventSourceCreationData
33         {
34                 string _source;
35                 string _logName;
36                 string _machineName;
37                 string _messageResourceFile;
38                 string _parameterResourceFile;
39                 string _categoryResourceFile;
40                 int _categoryCount;
41
42                 public EventSourceCreationData (string source, string logName)
43                 {
44                         _source = source;
45                         _logName = logName;
46                         _machineName = ".";
47                 }
48
49                 internal EventSourceCreationData (string source, string logName, string machineName)
50                 {
51                         _source = source;
52                         if (logName == null || logName.Length == 0) {
53                                 _logName = "Application";
54                         } else {
55                                 _logName = logName;
56                         }
57                         _machineName = machineName;
58                 }
59
60                 public int CategoryCount
61                 {
62                         get { return _categoryCount; }
63                         set {
64                                 if (value < 0)
65                                         throw new ArgumentOutOfRangeException ("value");
66                                 _categoryCount = value;
67                         }
68                 }
69
70                 public string CategoryResourceFile
71                 {
72                         get { return _categoryResourceFile; }
73                         set { this._categoryResourceFile = value; }
74                 }
75
76                 public string LogName
77                 {
78                         get { return _logName; }
79                         set { this._logName = value; }
80                 }
81
82                 public string MachineName
83                 {
84                         get { return _machineName; }
85                         set { _machineName = value; }
86                 }
87
88                 public string MessageResourceFile
89                 {
90                         get { return _messageResourceFile; }
91                         set { _messageResourceFile = value; }
92                 }
93
94                 public string ParameterResourceFile
95                 {
96                         get { return _parameterResourceFile; }
97                         set { _parameterResourceFile = value; }
98                 }
99
100                 public string Source
101                 {
102                         get { return _source; }
103                         set { _source = value; }
104                 }
105         }
106 }