public static async Task OpenTest(this IWebAutomationEngine engine, IWebHost server, string page) { var address = server.ServerFeatures .Get <IServerAddressesFeature>() .Addresses .FirstOrDefault(); await engine.Open(address + "/" + page); }
public MethodChainContext( IEnumerable <IWebAutomationFrameworkInstance> frameworks, IWebAutomationEngine automationEngine) { _userAgentMethodChainQueue = new Dictionary <IWebAutomationFrameworkInstance, MethodChain>(); _runNextSemaphore = new SemaphoreSlim(1); _runAllSemaphore = new SemaphoreSlim(1); Frameworks = frameworks; AutomationEngine = automationEngine; foreach (var framework in Frameworks) { _userAgentMethodChainQueue.Add(framework, new MethodChain()); } }