本文整理汇总了C#中ICorDebugAppDomain.GetProcess方法的典型用法代码示例。如果您正苦于以下问题:C# ICorDebugAppDomain.GetProcess方法的具体用法?C# ICorDebugAppDomain.GetProcess怎么用?C# ICorDebugAppDomain.GetProcess使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ICorDebugAppDomain
的用法示例。
在下文中一共展示了ICorDebugAppDomain.GetProcess方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetProcessWrapper
private DebuggeeProcess GetProcessWrapper(ICorDebugAppDomain appDomain)
{
ICorDebugProcess process;
appDomain.GetProcess(out process);
return GetProcessWrapper(process);
}
示例2: GetProcessCallbackInterface
public ManagedCallback GetProcessCallbackInterface(string name, ICorDebugAppDomain pAppDomain)
{
ICorDebugProcess pProcess;
try {
pProcess = pAppDomain.GetProcess();
} catch (COMException e) {
debugger.TraceMessage("Ignoring callback \"" + name + "\": " + e.Message);
return null;
}
return GetProcessCallbackInterface(name, pProcess);
}
示例3: TryGetValidProcess
public DnProcess TryGetValidProcess(ICorDebugAppDomain comAppDomain)
{
DebugVerifyThread();
if (comAppDomain == null)
return null;
ICorDebugProcess comProcess;
int hr = comAppDomain.GetProcess(out comProcess);
if (hr < 0)
return null;
return TryGetValidProcess(comProcess);
}
示例4: TryGetAppDomain
DnAppDomain TryGetAppDomain(ICorDebugAppDomain comAppDomain)
{
DebugVerifyThread();
if (comAppDomain == null)
return null;
ICorDebugProcess comProcess;
int hr = comAppDomain.GetProcess(out comProcess);
if (hr < 0)
return null;
var process = processes.TryGet(comProcess);
return process == null ? null : process.TryGetAppDomain(comAppDomain);
}
示例5: InitializeCurrentDebuggerState
void InitializeCurrentDebuggerState(DebugCallbackEventArgs e, ICorDebugProcess comProcess, ICorDebugAppDomain comAppDomain, ICorDebugThread comThread)
{
if (comThread != null) {
if (comProcess == null)
comThread.GetProcess(out comProcess);
if (comAppDomain == null)
comThread.GetAppDomain(out comAppDomain);
}
if (comAppDomain != null) {
if (comProcess == null)
comAppDomain.GetProcess(out comProcess);
}
var process = TryGetValidProcess(comProcess);
DnAppDomain appDomain;
DnThread thread;
if (process != null) {
appDomain = process.TryGetAppDomain(comAppDomain);
thread = process.TryGetThread(comThread);
}
else {
appDomain = null;
thread = null;
}
if (thread == null && appDomain == null && process != null)
appDomain = process.AppDomains.FirstOrDefault();
if (thread == null) {
if (appDomain != null)
thread = appDomain.Threads.FirstOrDefault();
else if (process != null)
thread = process.Threads.FirstOrDefault();
}
if (process == null)
SetDefaultCurrentProcess(e);
else
AddDebuggerState(new DebuggerState(e, process, appDomain, thread));
}
示例6: EnterCallback
void EnterCallback(string name, ICorDebugAppDomain pAppDomain)
{
EnterCallback(name, pAppDomain.GetProcess());
}
示例7: EnterCallback
void EnterCallback(PausedReason pausedReason, string name, ICorDebugAppDomain pAppDomain)
{
EnterCallback(pausedReason, name, pAppDomain.GetProcess());
}