10 instantiations of ContextHolder
Microsoft.Diagnostics.DataContractReader.Contracts (10)
Contracts\StackWalk\Context\ContextHolder.cs (1)
48public IPlatformAgnosticContext Clone() => new ContextHolder<T>() { Context = Context };
Contracts\StackWalk\Context\IPlatformAgnosticContext.cs (7)
52return new ContextHolder<X86Context>(); 55return new ContextHolder<AMD64Context>(); 58return new ContextHolder<ARMContext>(); 61return new ContextHolder<ARM64Context>(); 64return new ContextHolder<LoongArch64Context>(); 67return new ContextHolder<RISCV64Context>(); 70return 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>();
28 references to ContextHolder
Microsoft.Diagnostics.DataContractReader.Contracts (28)
Contracts\StackWalk\Context\ContextHolder.cs (5)
9public sealed class ContextHolder<T> : IPlatformAgnosticContext, IEquatable<ContextHolder<T>> 62ContextHolder<T> sourceHolder = (ContextHolder<T>)source; 66public bool Equals(ContextHolder<T>? other) 78return 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)
590if (TargetArchitectureSupport.IsX86Supported && context is ContextHolder<X86Context> x86Context) 593if (TargetArchitectureSupport.IsX64Supported && context is ContextHolder<AMD64Context> x64Context) 596if (TargetArchitectureSupport.IsArmSupported && context is ContextHolder<ARMContext> armContext) 599if (TargetArchitectureSupport.IsArm64Supported && context is ContextHolder<ARM64Context> arm64Context) 602if (TargetArchitectureSupport.IsRiscV64Supported && context is ContextHolder<RISCV64Context> riscV64Context) 605if (TargetArchitectureSupport.IsLoongArch64Supported && context is ContextHolder<LoongArch64Context> loongArch64Context) 608if (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>();