public static ICefCoreSession GetAndInitIfNeeded(CefSettings iCefSettings = null, params string[] args)
        {
            if (Session==null)
            {
                if (SessionFactory==null)
                    SessionFactory = new CefCoreSessionFactory(iCefSettings, args);

                Session = SessionFactory.GetSession();
            }

            return Session;
        }
Beispiel #2
0
        public static ICefCoreSession GetAndInitIfNeeded(CefSettings iCefSettings = null, params string[] args)
        {
            if (Session == null)
            {
                if (SessionFactory == null)
                {
                    SessionFactory = new CefCoreSessionFactory(iCefSettings, args);
                }

                Session = SessionFactory.GetSession();
            }

            return(Session);
        }