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;
        }
Exemple #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);
        }