internal void Associate(CefBrowser browser, CefFrame frame, CefV8Context context) { var webView = new CefV8_WebView(context,context.GetTaskRunner()); var taskCompletionSource = _TaskCompletionSources.GetOrDefault(frame.Identifier); if (taskCompletionSource!=null) { _TaskCompletionSources.Remove(frame.Identifier); taskCompletionSource.TrySetResult(webView); } _Associated.Add(frame.Identifier, webView); }
internal void Associate(CefBrowser browser, CefFrame frame, CefV8Context context) { var webView = new CefV8_WebView(context, context.GetTaskRunner()); var taskCompletionSource = _TaskCompletionSources.GetOrDefault(frame.Identifier); if (taskCompletionSource != null) { _TaskCompletionSources.Remove(frame.Identifier); taskCompletionSource.TrySetResult(webView); } _Associated.Add(frame.Identifier, webView); }