8 instantiations of ContextHolder
Microsoft.Diagnostics.DataContractReader.Contracts (8)
Contracts\StackWalk\Context\ContextHolder.cs (1)
51
public IPlatformAgnosticContext Clone() => new
ContextHolder
<T>() { Context = Context };
Contracts\StackWalk\Context\IPlatformAgnosticContext.cs (6)
38
RuntimeInfoArchitecture.X86 => new
ContextHolder
<X86Context>(),
39
RuntimeInfoArchitecture.X64 => new
ContextHolder
<AMD64Context>(),
40
RuntimeInfoArchitecture.Arm => new
ContextHolder
<ARMContext>(),
41
RuntimeInfoArchitecture.Arm64 => new
ContextHolder
<ARM64Context>(),
42
RuntimeInfoArchitecture.LoongArch64 => new
ContextHolder
<LoongArch64Context>(),
43
RuntimeInfoArchitecture.RiscV64 => new
ContextHolder
<RISCV64Context>(),
Contracts\StackWalk\FrameHandling\X86FrameHandler.cs (1)
60
ContextHolder<X86Context> evalContext = new
ContextHolder
<X86Context>();
22 references to ContextHolder
Microsoft.Diagnostics.DataContractReader.Contracts (22)
Contracts\StackWalk\Context\ContextHolder.cs (3)
9
public sealed class ContextHolder<T> : IPlatformAgnosticContext, IEquatable<
ContextHolder
<T>>
60
public bool Equals(
ContextHolder
<T>? other)
72
return Equals(obj as
ContextHolder
<T>);
Contracts\StackWalk\FrameHandling\AMD64FrameHandler.cs (2)
10
internal class AMD64FrameHandler(Target target,
ContextHolder
<AMD64Context> contextHolder) : BaseFrameHandler(target, contextHolder), IPlatformFrameHandler
12
private readonly
ContextHolder
<AMD64Context> _holder = contextHolder;
Contracts\StackWalk\FrameHandling\ARM64FrameHandler.cs (2)
12
internal class ARM64FrameHandler(Target target,
ContextHolder
<ARM64Context> contextHolder) : BaseFrameHandler(target, contextHolder), IPlatformFrameHandler
14
private readonly
ContextHolder
<ARM64Context> _holder = contextHolder;
Contracts\StackWalk\FrameHandling\ARMFrameHandler.cs (2)
12
internal class ARMFrameHandler(Target target,
ContextHolder
<ARMContext> contextHolder) : BaseFrameHandler(target, contextHolder), IPlatformFrameHandler
14
private readonly
ContextHolder
<ARMContext> _holder = contextHolder;
Contracts\StackWalk\FrameHandling\FrameHelpers.cs (6)
293
ContextHolder
<X86Context> contextHolder => new X86FrameHandler(_target, contextHolder),
294
ContextHolder
<AMD64Context> contextHolder => new AMD64FrameHandler(_target, contextHolder),
295
ContextHolder
<ARMContext> contextHolder => new ARMFrameHandler(_target, contextHolder),
296
ContextHolder
<ARM64Context> contextHolder => new ARM64FrameHandler(_target, contextHolder),
297
ContextHolder
<RISCV64Context> contextHolder => new RISCV64FrameHandler(_target, contextHolder),
298
ContextHolder
<LoongArch64Context> contextHolder => new LoongArch64FrameHandler(_target, contextHolder),
Contracts\StackWalk\FrameHandling\LoongArch64FrameHandler.cs (2)
11
internal class LoongArch64FrameHandler(Target target,
ContextHolder
<LoongArch64Context> contextHolder) : BaseFrameHandler(target, contextHolder), IPlatformFrameHandler
13
private readonly
ContextHolder
<LoongArch64Context> _holder = contextHolder;
Contracts\StackWalk\FrameHandling\RISCV64FrameHandler.cs (2)
11
internal class RISCV64FrameHandler(Target target,
ContextHolder
<RISCV64Context> contextHolder) : BaseFrameHandler(target, contextHolder), IPlatformFrameHandler
13
private readonly
ContextHolder
<RISCV64Context> _holder = contextHolder;
Contracts\StackWalk\FrameHandling\X86FrameHandler.cs (3)
10
internal class X86FrameHandler(Target target,
ContextHolder
<X86Context> contextHolder) : BaseFrameHandler(target, contextHolder), IPlatformFrameHandler
12
private readonly
ContextHolder
<X86Context> _context = contextHolder;
60
ContextHolder
<X86Context> evalContext = new ContextHolder<X86Context>();