Пример #1
0
        public Info GetInfo()
        {
            var cef = ChromelyRuntime.GetExpectedCefBuild();

            var bitness       = Environment.Is64BitProcess ? "x64" : "x86";
            var chromeVersion = $"Chromium: {cef.ChromiumVersion}, CEF: {cef.CefVersion}, Environment: {bitness}";

            return(new Info
            {
                Objective = "To build HTML5 desktop apps using embedded Chromium without WinForm or WPF. Uses Windows and Linux native GUI API. It can be extended to use WinForm or WPF. Main form of communication with Chromium rendering process is via Ajax HTTP/XHR requests using custom schemes and domains (CefGlue, CefSharp) and .NET/Javascript integration (CefSharp).",
                Platform = "Cross-platform - Windows, Linux. Built on CefGlue, CefSharp, NET Standard 2.0, .NET Core 2.0, .NET Framework 4.61 and above.",
                Version = chromeVersion
            });
        }
Пример #2
0
        private CefLoader(ChromelyPlatform platform)
        {
            _platform     = platform;
            _architecture = RuntimeInformation.ProcessArchitecture;
            _build        = ChromelyRuntime.GetExpectedCefBuild();
            Logger.Instance.Log.LogInformation($"CefLoader: Load CEF for {_platform} {_architecture}, version {_build}");

            _lastPercent = 0;
            _numberOfParallelDownloads = Environment.ProcessorCount;

            _tempTarStream = Path.GetTempFileName();
            _tempBz2File   = Path.GetTempFileName();
            _tempTarFile   = Path.GetTempFileName();
            _tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
        }
Пример #3
0
        public DynamicCefLoader(IServiceProvider serviceProvider)
        {
            _logger   = serviceProvider.GetService <ILogger>();
            _platform = serviceProvider.GetService <IChromelyConfiguration>().Platform;

            _architecture = RuntimeInformation.ProcessArchitecture;
            _build        = ChromelyRuntime.GetExpectedCefBuild();
            _logger?.LogInformation($"CefLoader: Load CEF for {_platform} {_architecture}, version {_build}");

            _lastPercent = 0;
            _numberOfParallelDownloads = Environment.ProcessorCount;

            _tempTarStream = Path.GetTempFileName();
            _tempBz2File   = Path.GetTempFileName();
            _tempTarFile   = Path.GetTempFileName();
            _tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
        }