mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
e43aec1c5e
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@4778 21ef857c-d57f-4fe0-8362-d861dc6d29cd
76 lines
1.7 KiB
C#
76 lines
1.7 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
|
|
namespace Debugger
|
|
{
|
|
[Serializable]
|
|
public class DebuggerEventArgs : EventArgs
|
|
{
|
|
private readonly object debugger;
|
|
|
|
public object Debugger
|
|
{
|
|
get { return debugger; }
|
|
}
|
|
|
|
public DebuggerEventArgs(object debugger)
|
|
{
|
|
this.debugger = debugger;
|
|
}
|
|
}
|
|
|
|
[Serializable]
|
|
public class ProcessEventArgs : DebuggerEventArgs
|
|
{
|
|
private readonly Process process;
|
|
|
|
public Process Process
|
|
{
|
|
get { return process; }
|
|
}
|
|
|
|
public ProcessEventArgs(Process process)
|
|
: base(null)
|
|
{
|
|
this.process = process;
|
|
}
|
|
}
|
|
|
|
[Serializable]
|
|
public class MessageEventArgs : ProcessEventArgs
|
|
{
|
|
private readonly int level;
|
|
private readonly string message;
|
|
private readonly string category;
|
|
|
|
public int Level
|
|
{
|
|
get { return level; }
|
|
}
|
|
|
|
public string Message
|
|
{
|
|
get { return message; }
|
|
}
|
|
|
|
public string Category
|
|
{
|
|
get { return category; }
|
|
}
|
|
|
|
public MessageEventArgs(Process process, string message)
|
|
: this(process, 0, message, String.Empty)
|
|
{
|
|
this.message = message;
|
|
}
|
|
|
|
public MessageEventArgs(Process process, int level, string message, string category)
|
|
: base(process)
|
|
{
|
|
this.level = level;
|
|
this.message = message;
|
|
this.category = category;
|
|
}
|
|
}
|
|
}
|