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