/// <summary> /// Sets use default http scheme handler flag. /// </summary> /// <param name="schemeName"> /// The scheme name. /// </param> /// <param name="domainName"> /// The domain name. /// </param> /// <returns> /// The <see cref="CefConfiguration"/> object. /// </returns> public CefConfiguration UseDefaultHttpSchemeHandler(string schemeName, string domainName) { var handler = new SchemeHandler(schemeName, domainName, false, true); this.RegisterSchemeHandler(handler); return(this); }
/// <summary> /// Registers scheme handler. /// </summary> /// <param name="ePlugSchemeHandler"> /// The blis scheme handler. /// </param> /// <returns> /// The <see cref="CefConfiguration"/> object. /// </returns> public virtual CefConfiguration RegisterSchemeHandler(SchemeHandler ePlugSchemeHandler) { if (ePlugSchemeHandler != null) { var scheme = new UrlScheme(ePlugSchemeHandler.SchemeName, ePlugSchemeHandler.DomainName, false); UrlSchemeProvider.RegisterScheme(scheme); IoC.RegisterInstance(typeof(SchemeHandler), ePlugSchemeHandler.Key, ePlugSchemeHandler); } return(this); }