public AD7StackFrame(AD7Engine engine, IRStackFrame stackFrame) { Engine = engine; StackFrame = stackFrame; _property = Lazy.Create(() => new AD7Property(this, TaskExtensions.RunSynchronouslyOnUIThread(ct => StackFrame.DescribeEnvironmentAsync(cancellationToken: ct)), isFrameEnvironment: true)); }
/// <summary> /// Same as <see cref="DescribeEnvironmentAsync(IRStackFrame, REvaluationResultProperties, CancellationToken)"/>, /// but the only <c>properties</c> that are fetched are those that are necessary to invoke /// <see cref="REvaluationResultInfoExtensions.DescribeChildrenAsync"/> on the returned value. /// </summary> public static Task <IRValueInfo> DescribeEnvironmentAsync(this IRStackFrame frame, CancellationToken cancellationToken = default(CancellationToken)) => frame.DescribeEnvironmentAsync(REvaluationResultProperties.None, cancellationToken);