public static void WriteEntry(string source, string message, EventLogEntryType type, int eventID, short category, byte[] rawData)
 {
     using (EventLogInternal internal2 = new EventLogInternal("", ".", CheckAndNormalizeSourceName(source)))
     {
         internal2.WriteEntry(message, type, eventID, category, rawData);
     }
 }
 public static void WriteEvent(string source, EventInstance instance, byte[] data, params object[] values)
 {
     using (EventLogInternal internal2 = new EventLogInternal("", ".", CheckAndNormalizeSourceName(source)))
     {
         internal2.WriteEvent(instance, data, values);
     }
 }
示例#3
0
 internal EventLogEntry(byte[] buf, int offset, EventLogInternal log)
 {
     this.dataBuf   = buf;
     this.bufOffset = offset;
     this.owner     = log;
     GC.SuppressFinalize(this);
 }
示例#4
0
        /// <devdoc>
        /// </devdoc>
        /// <internalonly/>
        private EventLogEntry(SerializationInfo info, StreamingContext context)
        {
            dataBuf = (byte[])info.GetValue("DataBuffer", typeof(byte[]));
            string logName     = info.GetString("LogName");
            string machineName = info.GetString("MachineName");

            owner = new EventLogInternal(logName, machineName, "");
            GC.SuppressFinalize(this);
        }
示例#5
0
 public EventLog(string logName, string machineName, string source)
 {
     _underlyingEventLog = new EventLogInternal(logName, machineName, source, this);
 }
 internal EventLogEntryCollection(EventLogInternal log)
 {
     this.log = log;
 }