blob: 53f3e51dbc3cfb12b971aa32da0bfe688959383b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
// System.Diagnostics.EventLogInstaller.cs
//
// Author:
// Gert Driesen (drieseng@users.sourceforge.net)
//
// (C) Novell
//
using System.Collections;
using System.ComponentModel;
using System.Configuration.Install;
using System.Runtime.InteropServices;
namespace System.Diagnostics
{
public class EventLogInstaller : ComponentInstaller
{
public EventLogInstaller ()
{
}
[MonoTODO]
public override void CopyFromComponent (IComponent component)
{
throw new NotImplementedException ();
}
[MonoTODO]
public override void Install (IDictionary stateSaver)
{
throw new NotImplementedException ();
}
[MonoTODO]
public override bool IsEquivalentInstaller (ComponentInstaller otherInstaller)
{
throw new NotImplementedException ();
}
[MonoTODO]
public override void Rollback (IDictionary savedState)
{
throw new NotImplementedException ();
}
[MonoTODO]
public override void Uninstall (IDictionary savedState)
{
throw new NotImplementedException ();
}
[TypeConverter ("System.Diagnostics.Design.StringValueConverter, " + Consts.AssemblySystem_Design)]
public string Log {
get {
if (_log == null && _source != null)
_log = EventLog.LogNameFromSourceName (_source, ".");
return _log;
}
set {
_log = value;
}
}
[TypeConverter ("System.Diagnostics.Design.StringValueConverter, " + Consts.AssemblySystem_Design)]
public string Source {
get {
return _source;
}
set {
_source = value;
}
}
[DefaultValue (UninstallAction.Remove)]
public UninstallAction UninstallAction {
get {
return _uninstallAction;
}
set {
if (!Enum.IsDefined(typeof(UninstallAction), value))
// LAMESPEC, the docs do not mention this, but
// this exception is indeed thrown for invalid
// values
throw new InvalidEnumArgumentException("value",
(int) value, typeof(UninstallAction));
_uninstallAction = value;
}
}
private string _log;
private string _source;
private UninstallAction _uninstallAction = UninstallAction.Remove;
}
}
|