internal static ChromiumFxSession GetSession(Action<CfxSettings> settingsBuilder, Action<CfxOnBeforeCommandLineProcessingEventArgs> commadLineHandler)
        {
            if (_Session != null)
                return _Session;

            _Session = new ChromiumFxSession(settingsBuilder, commadLineHandler);
            return _Session;
        }
        internal static ChromiumFxSession GetSession(Action<CfxSettings> settingsBuilder)
        {
            if (_Session != null)
                return _Session;

            _Session = new ChromiumFxSession(settingsBuilder);
            return _Session;
        }
 public ChromiumFXWPFWebWindowFactory(Action<CfxSettings> settingsUpdater=null, Action<CfxOnBeforeCommandLineProcessingEventArgs> commadLineHandler=null)
 {
     _Session = ChromiumFxSession.GetSession((settings) => 
     {
         settingsUpdater?.Invoke(settings);
         Settings = settings;
     }, commadLineHandler);
 }
Ejemplo n.º 4
0
        internal static ChromiumFxSession GetSession(Action <CfxSettings> settingsBuilder, Action <CfxOnBeforeCommandLineProcessingEventArgs> commadLineHandler, IWebSessionLogger webSessionLogger)
        {
            if (_Session != null)
            {
                return(_Session);
            }

            _Session = new ChromiumFxSession(settingsBuilder, commadLineHandler, webSessionLogger);
            return(_Session);
        }
Ejemplo n.º 5
0
        internal static ChromiumFxSession GetSession(Action <CfxSettings> settingsBuilder)
        {
            if (_Session != null)
            {
                return(_Session);
            }

            _Session = new ChromiumFxSession(settingsBuilder);
            return(_Session);
        }