Esempio n. 1
0
        internal LVCefClient(LVCefControl lvCefControl)
        {
            Debug.WriteLine(DBGPREFIX + "Created");
            if (lvCefControl == null)
                throw new CefRuntimeException(DBGPREFIX + "Instance of a LVCefControl required to create an LVCefClient");
            _lvCefControl = lvCefControl;
            _messageRouter = new CefMessageRouterBrowserSide(new CefMessageRouterConfig());

            LifeSpanHandler = new LVCefLifeSpanHandler(_lvCefControl, _messageRouter);
            RequestHandler = new LVCefRequestHandler(_lvCefControl, _messageRouter);
            MessageRouterHandler = new LVCefMessageRouterHandler(_lvCefControl, _messageRouter);
            RegisterMessageRouter();
        }
Esempio n. 2
0
        internal LVCefClient(LVCefControl lvCefControl)
        {
            Debug.WriteLine(DBGPREFIX + "Created");
            if (lvCefControl == null)
            {
                throw new CefRuntimeException(DBGPREFIX + "Instance of a LVCefControl required to create an LVCefClient");
            }
            _lvCefControl  = lvCefControl;
            _messageRouter = new CefMessageRouterBrowserSide(new CefMessageRouterConfig());

            LifeSpanHandler      = new LVCefLifeSpanHandler(_lvCefControl, _messageRouter);
            RequestHandler       = new LVCefRequestHandler(_lvCefControl, _messageRouter);
            MessageRouterHandler = new LVCefMessageRouterHandler(_lvCefControl, _messageRouter);
            RegisterMessageRouter();
        }