Commit Graph
19 Commits
Author SHA1 Message Date
Miguel de Icaza f48ceb9860 [System] Removal of the NET_2_0 in the source code
Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.
2012-06-02 13:16:40 -04:00
Atsushi Eno b82fb5fab7 2007-09-05 Atsushi Enomoto <[email protected]>
* EventLog.cs : added cosmetic 2.0 attributes on newly added members.


svn path=/trunk/mcs/; revision=85372
2007-09-05 17:18:48 +00:00
Atsushi Eno 5ccf103008 2007-09-05 Atsushi Enomoto <[email protected]>
* EventLog.cs, EventLogImpl.cs, LocalFileEventLog.cs, NullEventLog.cs,
	  Win32EventLog.cs : added missing members, will be left unsupported
	  in non-Win32 impl and left unimplemented in Win32.
	* CounterCreationDataCollection.cs : in 2.0 OnValidate() is overriden
	  instad of OnInsert().
	* Process.cs : removed StandardErrorEncoding and
	  StandardOutputEncoding. They do not exist anymore.


svn path=/trunk/mcs/; revision=85336
2007-09-05 08:57:02 +00:00
Gert Driesen b5039e39d7 * EventLog.cs: Do not allow all whitespace machine name. Do nothing
when setting the same value for EnableRaisingEvents, and only modify
value of field when enable/disable succeeded. Treats log name case
insensitively on all platforms, and perform reset when the log name
is changed. Validate new machine name in property, and treat it
case-insensitively. Perform reset when source is modified, and log
name was not explicitly set. When EventLog is closed, also disable
event watcher.
* LocalEventLog.cs: In Close, clean-up the FileSystemWatcher. Add
locking to Created eventhandler to avoid duplicate notifications.
* Win32EventLog.cs: Cache handle for reading from eventlog. In Close,
close the read handle. Implement support for watching win32 eventlog.
Fixes bug #82436.
* EventLogTest.cs: Added tests for validity of machine name. Added
tests for case-insensitivity of Source, Log and MachineName.

svn path=/trunk/mcs/; revision=84049
2007-08-14 11:23:24 +00:00
Atsushi Eno 4ecf370fff 2007-08-02 Atsushi Enomoto <[email protected]>
* EventLogImpl.cs
	  EventLog.cs
	  LocalFileEventLog.cs : Implemented EntryWritten event support.
	* Win32EventLog.cs, NullEventLog.cs : they need stub overrides.
	* EventLogEntry.cs : [MonitoringDescription].
	* DiagnosticsConfigurationHandler.cs : [Obsolete]


svn path=/trunk/mcs/; revision=83277
2007-08-02 12:32:07 +00:00
Gert Driesen 303150eecc * EventInstanceTest.cs: Added tests for EventInstance.
* EventLog.cs: Removed namespace import.
* EventInstance.cs: Added range checks and check whether specified
entry type is defined.
* System_test.dll.sources: Added EventInstanceTest.cs

svn path=/trunk/mcs/; revision=64104
2006-08-20 14:46:19 +00:00
Gert Driesen bc28d0226b * System.dll.sources: Added Win32EventLog.cs.
* EventLogEntry.cs: Added InstanceId property (2.0 only). Moved
Obsolete attribute to correct property.
* EventSourceCreationData.cs: Updated copyright. For internal ctor,
set log name to "Application" if value is null or zero-length string.
* EventLogImpl.cs: EventImpl now acts as base class for event log
implemenations.
* NullEventLog.cs: Modified to implement new abstract methods of base
class. Removed factory class.
* EventLog.cs: EventLog implementation that delegates just about
everything to individual eventlog providers. To specify the event log
implementation to use, the MONO_EVENTLOG_TYPE environment variable can
be used. Possible values are:
- win32 : read/write entries using the native win32 eventlog
- local[:path] : read/write entries as files to a local directory
- null : silently ignore all entries
The default is "null" on unix (and versions of Windows before NT,
meaning Windows 98, ...), and "win32" on Windows NT (and higher).
When "the local" implementation is used, the directory in which to
store the event logs, event sources and entries can be specified as
part of MONO_EVENTLOG_TYPE environment variable using the syntax
"local:<path>" (eg. local:/home/myuser/mono/eventlog).
* LocalFileEventLog.cs: Event log implementation which uses a local
file store. The directory to use for persistence can be specified
as part of the MONO_EVENTLOG_TYPE environment variable (see above).
If that directory is not explicitly set, then the following directory
will be used for storing eventlog entries:
- windows       : %APPDATA%\mono\eventlog
- unix          : /var/lib/mono/eventlog
On unix, the directory permission for individual eventlog log
directories will be set to 777 (with +t bit) allowing everyone to
read and write eventlog entries while only allowing entries to be
deleted by the user(s) that created them.
Format of log files was modified to allow it contain all necessary
information for an event log entry.
* Win32EventLog.cs: Event log implementation for Windows NT and
higher which uses the Win32 native event log for reading/writing
eventlog entries, and which uses the registry to store event log and
event source registration information.
* EventLogEntryCollection.cs: Delegate implementation to event log
implementation. Use lazy init for enumerating entries. Cache current
item in 2.0 profile.
* EventLogTest.cs: Enable tests. On 2.0 profile, set MONO_EVENTLOG_TYPE
environment variable to force local file implementation to be used for
unit tests. This avoids permission issues for the unit tests, and
allows us to clean up the files/directory that are created during the
test run. Skip tests that cannot pass when the null implementation is
active (on 1.0 profile). Added tests for all WriteEntry and WriteEvent
(2.0 only) overloads, Clear, Entries, Exists and LogNameFromSourceName.

svn path=/trunk/mcs/; revision=64088
2006-08-20 11:54:06 +00:00
Atsushi Eno 00a58245be 2006-08-14 Atsushi Enomoto <[email protected]>
* System.dll.sources : added LocalFileEventLog.cs and NullEventLog.cs.

	* EventLogImpl.cs, EventLogEntryCollection.cs, EventLog.cs :
	  some rework to support actual event log implementations.
	* NullEventLog.cs, LocalFileEventLog.cs :
	  new files. The former (default) implementation does nothing for
	  any event log features. The latter implements local file based
	  event logs.


svn path=/trunk/mcs/; revision=63705
2006-08-14 06:10:01 +00:00
Atsushi Eno b9049e1281 2006-08-14 Atsushi Enomoto <[email protected]>
* UnixEventLog.cs, EventLogEntry.cs, EventSourceCreationData.cs,
	  EventLogImpl.cs, Win32EventLog.cs, EventLogEntryCollection.cs,
	  EventLog.cs:
	  Reverted previous two changes that does not work at all.

	* System.dll.sources : reverted all recent changes on EventLogs.
	  It does not work at all.


svn path=/trunk/mcs/; revision=63704
2006-08-14 06:00:46 +00:00
Gert Driesen fe0cdee9af * EventLog.cs: For now, use null implementation.
svn path=/trunk/mcs/; revision=63634
2006-08-11 10:41:19 +00:00
Gert Driesen c11d92c6db * EventLogTest.cs: new test, currently not enabled due to UnixRegistry
bug which still needs to be tracked, and which would cause temporary
registry entries to be left behind by running tests.
* EventLogEntry.cs: Added InstanceId property (2.0 only). Moved
Obsolete attribute to correct property.
* EventSourceCreationData.cs: Updated copyright. For internal ctor,
set log name to "Application" if value is null or zero-length string.
* EventLogImpl.cs: EventImpl now acts as base class for event log
implemenations. Added NullEventLog implementation, which is not used
at the moment.
* EventLog.cs: EventLog implementation that uses registry for
keeping track of logs and sources to match .NET (and Windows). When
running on Windows NT (and higher), event entries are written to
the native win32 event log.  Reading event entries is not yet working
for Windows. On linux, we use a local file store (based on patch by
Atsushi).
* UnixEventLog.cs: Event log implementation for linux which uses a
local file store.
* Win32EventLog.cs: Event log implementation for Windows NT and
higher which uses the Win32 native event log.
* EventLogEntryCollection.cs: Delegate implementation to event log
implemenation. Use lazy init for enumerating entries.
* System.dll.sources: Added UnixEventLog.cs and Win32EventLog.cs.
* System_test.dll.sources: Added EventLogTest.cs.

svn path=/trunk/mcs/; revision=63633
2006-08-11 10:32:58 +00:00
Gert Driesen 39421f4b7c * EventLog.cs: Fixed Designer attribute to match MS.NET.
* ICollectData.cs: Added marshalling attribute to match MS.NET.
* PerformanceCounter.cs: Fixed Designer attribute to match MS.NET.
* Process.cs: Fixed Designer attribute to match MS.NET, modified
* ProcessModule.cs: Fixed Designer attribute to match MS.NET.
* ProcessThread.cs: Fixed Designer attribute to match MS.NET.
DesignerSerializationVisibility on StartInfo to match MS.NET, changed
Category attribute on Exited event to match MS.NET.

svn path=/trunk/mcs/; revision=48151
2005-08-09 08:44:10 +00:00
Duncan Mak 24f5ef2c44 Add MIT license to System.dll
svn path=/trunk/mcs/; revision=30054
2004-06-21 18:02:11 +00:00
Andreas N f46576b1b2 2003-07-21 Andreas Nahr <[email protected]>
* EventLog.cs: Implementation handling
	* EventLogImpl.cs: Added, contains an platform independent empty implementation
	for EventLog

svn path=/trunk/mcs/; revision=16492
2003-07-21 17:20:51 +00:00
Andreas N 44c8d493b2 2003-07-17 Andreas Nahr <[email protected]>
* CounterCreationData.cs:
	* EventLog.cs:
	* EventLogEntry.cs:
	* PerformanceCounter.cs:
	* Process.cs:
	* ProcessModule.cs:
	* ProcessStartInfo.cs:
	* ProcessThread.cs: Reworked attributes based on the new Consts scheme

svn path=/trunk/mcs/; revision=16339
2003-07-17 11:27:24 +00:00
Andreas N 78dc7ab616 2003-07-13 Andreas Nahr <[email protected]>
* DiagnosticsConfigurationHandler.cs: Removed a never used variable
	* EventLog.cs: Small update to prevent a warning
	* EventLogPermission.cs: Implemented or implementation added
	* EventLogPermissionAttribute.cs: Implemented or implementation added
	* EventLogPermissionEntry.cs: Implemented or implementation added
	* EventLogPermissionEntryCollection.cs: Implemented or implementation added
	* EventLogTraceListener.cs: Implemented or implementation added
	* PerformanceCounterManager.cs: Implemented or implementation added
	* PerformanceCounterInstaller.cs: Made internal
	* PerformanceCounterCategory.cs: Implemented few members
	* PerformanceCounterPermission.cs: Implemented or implementation added
	* PerformanceCounterPermissionAttribute.cs: Implemented or implementation added
	* PerformanceCounterPermissionEntry.cs: Implemented or implementation added
	* PerformanceCounterPermissionEntryCollection.cs: Implemented or implementation added

svn path=/trunk/mcs/; revision=16177
2003-07-13 22:09:12 +00:00
Andreas N d56e933d51 2003-07-07 Andreas Nahr <[email protected]>
* EventLog.cs: Removed unneccesary attribute according to corecompare
	* EventLogEntry.cs: Removed unneccesary attribute according to corecompare
	* Process.cs: Removed unneccesary attributes according to corecompare, added attribute
	* ProcessModule.cs: Removed unneccesary attribute according to corecompare
	* ProcessStartInfo.cs: Removed unneccesary attribute according to corecompare
	* ProcessThread.cs: Removed unneccesary attribute according to corecompare, fixed signature

svn path=/trunk/mcs/; revision=16010
2003-07-07 11:03:46 +00:00
Andreas N e1a881b8f8 2003-07-05 Andreas Nahr <[email protected]>
* InstanceDataCollectionCollection.cs: Corrected wrong signature
	* EventLog.cs: Missing attributes added, redirected some class members
	* EventLogEntry.cs: Missing attributes added
	* EventLogInstaller.cs: Made internal

svn path=/trunk/mcs/; revision=15968
2003-07-05 23:16:07 +00:00
Jonathan Pryor f7a8fc051b * EntryWrittenEventArgs.cs: Implemented
* EntryWrittenEventHandler.cs: Implemented
  * EventLog.cs: Stubbed out
  * EventLogEntry.cs: Stubbed out
  * EventLogEntryCOllection.cs: Implemented.
  * EventLogEntryType.cs: Implemented
  * EventLogInstaller.cs: Stubbed out
  * EventLogPermission.cs: Stubbed out
  * EventLogPermissionAccess.cs: Implemented
  * EventLogPermissionAttribute.cs: Stubbed out
  * EventLogPermissionEntry.cs: Stubbed out
  * EventLogPermissionEntryCollection.cs: Stubbed out
  * EventLogTraceListener.cs: Stubbed out

svn path=/trunk/mcs/; revision=5191
2002-06-09 18:06:07 +00:00