コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClrMdHeap"/> class.
 /// </summary>
 /// <param name="runtime">The runtime.</param>
 /// <param name="clrHeap">The CLR heap.</param>
 internal ClrMdHeap(ClrMdRuntime runtime, Microsoft.Diagnostics.Runtime.ClrHeap clrHeap)
 {
     Runtime = runtime;
     ClrHeap = clrHeap;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClrMdAppDomain" /> class.
 /// </summary>
 /// <param name="runtime">The runtime.</param>
 /// <param name="clrAppDomain">The CLR application domain.</param>
 internal ClrMdAppDomain(ClrMdRuntime runtime, Microsoft.Diagnostics.Runtime.ClrAppDomain clrAppDomain)
 {
     Runtime      = runtime;
     ClrAppDomain = clrAppDomain;
     modules      = SimpleCache.Create(() => runtime.ClrRuntime.Modules.Where(m => m.AppDomains.Contains(ClrAppDomain)).Select(mm => runtime.Provider.FromClrModule(mm)).ToArray());
 }