/// <inheritdoc/> public WindowController(IChromelyWindow window, IChromelyNativeHost nativeHost, IChromelyConfiguration config, IChromelyRouteProvider routeProvider, IChromelyRequestHandler requestHandler, IChromelyRequestSchemeProvider requestSchemeProvider, ChromelyHandlersResolver handlersResolver) : base(window, nativeHost, config, routeProvider, requestHandler, handlersResolver) { // WindowController.NativeWindow _nativeHost.HostCreated += OnWindowCreated; _nativeHost.HostMoving += OnWindowMoving; _nativeHost.HostSizeChanged += OnWindowSizeChanged; _nativeHost.HostClose += OnWindowClose; _requestSchemeProvider = requestSchemeProvider; // Set CefBinariesDownloader var objList = _handlersResolver?.Invoke(typeof(ICefBinariesDownloader)); var tempLoader = objList?.FirstOrDefault() as ICefBinariesDownloader; if (tempLoader is not null) { _binariesDownloader = tempLoader; } }
public DefaultMessageRouterHandler(IChromelyRouteProvider routeProvider, IChromelyRequestHandler requestHandler, IChromelyDataTransferOptions dataTransferOptions, IChromelyErrorHandler chromelyErrorHandler) { _routeProvider = routeProvider; _requestHandler = requestHandler; _dataTransferOptions = dataTransferOptions; _chromelyErrorHandler = chromelyErrorHandler; }
public DefaultLifeSpanHandler(IChromelyConfiguration config, IChromelyRequestHandler requestHandler, IChromelyRouteProvider routeProvider, IChromelyWindow window) { _config = config; _requestHandler = requestHandler; _routeProvider = routeProvider; _browser = window as ChromiumBrowser; }
/// <summary> /// Initializes a new instance of the <see cref="DefaultRequestHandler"/> class. /// </summary> /// <param name="config">Instance of <see cref="IChromelyConfiguration"/>.</param> /// <param name="requestHandler">Instance of <see cref="IChromelyRequestHandler"/>.</param> /// <param name="routeProvider">Instance of <see cref="IChromelyRouteProvider"/>.</param> /// <param name="window">Instance of <see cref="IChromelyWindow"/>.</param> /// <param name="resourceRequestHandler">Instance of <see cref="CefResourceRequestHandler"/>.</param>> public DefaultRequestHandler(IChromelyConfiguration config, IChromelyRequestHandler requestHandler, IChromelyRouteProvider routeProvider, IChromelyWindow window, CefResourceRequestHandler?resourceRequestHandler = null) { _config = config; _requestHandler = requestHandler; _routeProvider = routeProvider; _browser = window as ChromiumBrowser; _resourceRequestHandler = resourceRequestHandler; }
/// <summary> /// Initializes a new instance of <see cref="DefaultRequestSchemeHandlerFactory"/>. /// </summary> /// <param name="routeProvider">Instance of <see cref="IChromelyRouteProvider"/>.</param> /// <param name="requestSchemeProvider">Instance of <see cref="IChromelyRequestSchemeProvider"/>.</param> /// <param name="requestHandler">Instance of <see cref="IChromelyRequestHandler"/>.</param> /// <param name="dataTransferOptions">Instance of <see cref="IChromelyDataTransferOptions"/>.</param> /// <param name="chromelyErrorHandler">Instance of <see cref="IChromelyErrorHandler"/>.</param> public DefaultRequestSchemeHandlerFactory(IChromelyRouteProvider routeProvider, IChromelyRequestSchemeProvider requestSchemeProvider, IChromelyRequestHandler requestHandler, IChromelyDataTransferOptions dataTransferOptions, IChromelyErrorHandler chromelyErrorHandler) { _routeProvider = routeProvider; _requestSchemeProvider = requestSchemeProvider; _requestHandler = requestHandler; _dataTransferOptions = dataTransferOptions; _chromelyErrorHandler = chromelyErrorHandler; }
public ChromelyWindowController(IChromelyWindow window, IChromelyNativeHost nativeHost, IChromelyConfiguration config, IChromelyRouteProvider routeProvider, IChromelyRequestHandler requestHandler, ChromelyHandlersResolver handlersResolver) { _window = window; _nativeHost = nativeHost; _config = config; _routeProvider = routeProvider; _requestHandler = requestHandler; _handlersResolver = handlersResolver; }
public DefaultRequestSchemeHandler(IChromelyRouteProvider routeProvider, IChromelyRequestSchemeProvider requestSchemeProvider, IChromelyRequestHandler requestHandler, IChromelyDataTransferOptions dataTransferOptions, IChromelyErrorHandler chromelyErrorHandler) { _routeProvider = routeProvider; _requestSchemeProvider = requestSchemeProvider; _requestHandler = requestHandler; _dataTransferOptions = dataTransferOptions; _chromelyErrorHandler = chromelyErrorHandler; _chromelyResponse = new ChromelyResponse(); _mimeType = ResourceHandler.DefaultMimeType; _stream = Stream.Null; }
/// <inheritdoc/> public WindowController(IChromelyWindow window, IChromelyNativeHost nativeHost, IChromelyConfiguration config, IChromelyRouteProvider routeProvider, IChromelyRequestHandler requestHandler, IChromelyRequestSchemeProvider requestSchemeProvider, ICefDownloader binariesDownloader, ChromelyHandlersResolver handlersResolver) : base(window, nativeHost, config, routeProvider, requestHandler, handlersResolver) { // WindowController.NativeWindow _nativeHost.HostCreated += OnWindowCreated; _nativeHost.HostMoving += OnWindowMoving; _nativeHost.HostSizeChanged += OnWindowSizeChanged; _nativeHost.HostClose += OnWindowClose; _requestSchemeProvider = requestSchemeProvider; _binariesDownloader = binariesDownloader; }
public ChromelyRequestSchemeHandlerFactory(IChromelyRouteProvider routeProvider, IChromelyRequestSchemeProvider requestSchemeProvider, IChromelyRequestHandler requestHandler, IChromelyDataTransferOptions dataTransferOptions, IChromelyErrorHandler chromelyErrorHandler) : base(routeProvider, requestSchemeProvider, requestHandler, dataTransferOptions, chromelyErrorHandler) { }
public ChromelyMessageRouter(IChromelyRouteProvider routeProvider, IChromelyRequestHandler requestHandler, IChromelyDataTransferOptions dataTransferOptions, IChromelyErrorHandler chromelyErrorHandler) : base(routeProvider, requestHandler, dataTransferOptions, chromelyErrorHandler) { }
public ChromelyRequestHandler(IChromelyConfiguration config, IChromelyRequestHandler requestHandler, IChromelyRouteProvider routeProvider, IChromelyWindow window, CefResourceRequestHandler resourceRequestHandler = null) : base(config, requestHandler, routeProvider, window, resourceRequestHandler) { }
public ChromelyLifeSpanHandler(IChromelyConfiguration config, IChromelyRequestHandler requestHandler, IChromelyRouteProvider routeProvider, IChromelyWindow window) : base(config, requestHandler, routeProvider, window) { }