10 instantiations of ContextHolder
Microsoft.Diagnostics.DataContractReader.Contracts (10)
Contracts\StackWalk\Context\ContextHolder.cs (1)
52public IPlatformAgnosticContext Clone() => new ContextHolder<T>() { Context = Context };
Contracts\StackWalk\Context\IPlatformAgnosticContext.cs (7)
48return new ContextHolder<X86Context>(); 51return new ContextHolder<AMD64Context>(); 54return new ContextHolder<ARMContext>(); 57return new ContextHolder<ARM64Context>(); 60return new ContextHolder<LoongArch64Context>(); 63return new ContextHolder<RISCV64Context>(); 66return new ContextHolder<WasmContext>();
Contracts\StackWalk\FrameHandling\WasmFrameHandler.cs (1)
77ContextHolder<WasmContext> saved = new();
Contracts\StackWalk\FrameHandling\X86FrameHandler.cs (1)
165ContextHolder<X86Context> evalContext = new ContextHolder<X86Context>();
26 references to ContextHolder
Microsoft.Diagnostics.DataContractReader.Contracts (26)
Contracts\StackWalk\Context\ContextHolder.cs (3)
9public sealed class ContextHolder<T> : IPlatformAgnosticContext, IEquatable<ContextHolder<T>> 62public bool Equals(ContextHolder<T>? other) 74return Equals(obj as ContextHolder<T>);
Contracts\StackWalk\FrameHandling\AMD64FrameHandler.cs (2)
10internal class AMD64FrameHandler(Target target, ContextHolder<AMD64Context> contextHolder) : BaseFrameHandler(target, contextHolder), IPlatformFrameHandler 12private readonly ContextHolder<AMD64Context> _holder = contextHolder;
Contracts\StackWalk\FrameHandling\ARM64FrameHandler.cs (2)
12internal class ARM64FrameHandler(Target target, ContextHolder<ARM64Context> contextHolder) : BaseFrameHandler(target, contextHolder), IPlatformFrameHandler 14private readonly ContextHolder<ARM64Context> _holder = contextHolder;
Contracts\StackWalk\FrameHandling\ARMFrameHandler.cs (2)
12internal class ARMFrameHandler(Target target, ContextHolder<ARMContext> contextHolder) : BaseFrameHandler(target, contextHolder), IPlatformFrameHandler 14private readonly ContextHolder<ARMContext> _holder = contextHolder;
Contracts\StackWalk\FrameHandling\FrameHelpers.cs (7)
579if (TargetArchitectureSupport.IsX86Supported && context is ContextHolder<X86Context> x86Context) 582if (TargetArchitectureSupport.IsX64Supported && context is ContextHolder<AMD64Context> x64Context) 585if (TargetArchitectureSupport.IsArmSupported && context is ContextHolder<ARMContext> armContext) 588if (TargetArchitectureSupport.IsArm64Supported && context is ContextHolder<ARM64Context> arm64Context) 591if (TargetArchitectureSupport.IsRiscV64Supported && context is ContextHolder<RISCV64Context> riscV64Context) 594if (TargetArchitectureSupport.IsLoongArch64Supported && context is ContextHolder<LoongArch64Context> loongArch64Context) 597if (TargetArchitectureSupport.IsWasmSupported && context is ContextHolder<WasmContext> wasmContext)
Contracts\StackWalk\FrameHandling\LoongArch64FrameHandler.cs (2)
11internal class LoongArch64FrameHandler(Target target, ContextHolder<LoongArch64Context> contextHolder) : BaseFrameHandler(target, contextHolder), IPlatformFrameHandler 13private readonly ContextHolder<LoongArch64Context> _holder = contextHolder;
Contracts\StackWalk\FrameHandling\RISCV64FrameHandler.cs (2)
11internal class RISCV64FrameHandler(Target target, ContextHolder<RISCV64Context> contextHolder) : BaseFrameHandler(target, contextHolder), IPlatformFrameHandler 13private readonly ContextHolder<RISCV64Context> _holder = contextHolder;
Contracts\StackWalk\FrameHandling\WasmFrameHandler.cs (3)
26internal sealed class WasmFrameHandler(Target target, ContextHolder<WasmContext> contextHolder) 33private readonly ContextHolder<WasmContext> _holder = contextHolder; 77ContextHolder<WasmContext> saved = new();
Contracts\StackWalk\FrameHandling\X86FrameHandler.cs (3)
10internal class X86FrameHandler(Target target, ContextHolder<X86Context> contextHolder) : BaseFrameHandler(target, contextHolder), IPlatformFrameHandler 14private readonly ContextHolder<X86Context> _context = contextHolder; 165ContextHolder<X86Context> evalContext = new ContextHolder<X86Context>();