chr
2026-04-08 53e656200368a983e563550e2cc1acbc6d86b729
OpenTap/Engine/Addin/VariableContext.cs
@@ -1,5 +1,8 @@
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Dynamic;
using System.IO;
using System.Numerics;
namespace OpenTap.Addin
{
@@ -69,5 +72,17 @@
                }
            }
        }
        public static VariableContext FromTestVariables(IEnumerable<TestVariable> variables)
        {
            var runtimeVariablePool = new ConcurrentDictionary<string, RuntimeVariable>();
            foreach (var data in variables)
            {
                RuntimeVariable runTime = data.ToRuntime();
                if (runTime == null) continue;
                runtimeVariablePool[runTime.Name] = runTime;
            }
            return new VariableContext(runtimeVariablePool);
        }
    }
}