public DefaultConfiguration() { AppName = Assembly.GetEntryAssembly()?.GetName().Name; Platform = ChromelyRuntime.Platform; AppExeLocation = AppDomain.CurrentDomain.BaseDirectory; StartUrl = "local://app/chromely.html"; DebuggingMode = true; UrlSchemes = new List <UrlScheme>(); CefDownloadOptions = new CefDownloadOptions(); WindowOptions = new WindowOptions { Title = AppName }; UrlSchemes.AddRange(new List <UrlScheme>() { new UrlScheme("default-resource", "local", string.Empty, string.Empty, UrlSchemeType.Resource, false), new UrlScheme("default-resource", "local", string.Empty, string.Empty, UrlSchemeType.Resource, false), new UrlScheme("default-custom-http", "http", "chromely.com", string.Empty, UrlSchemeType.Custom, false), new UrlScheme("default-command-http", "http", "command.com", string.Empty, UrlSchemeType.Command, false), new UrlScheme("chromely-site", string.Empty, string.Empty, "https://github.com/chromelyapps/Chromely", UrlSchemeType.External, true) }); ControllerAssemblies = new List <ControllerAssemblyInfo>(); ControllerAssemblies.RegisterServiceAssembly("Chromely.External.Controllers.dll"); CustomSettings = new Dictionary <string, string>() { ["cefLogFile"] = "logs\\chromely.cef.log", ["logSeverity"] = "info", ["locale"] = "en-US" }; }
public DefaultConfiguration() { AppName = Assembly.GetEntryAssembly()?.GetName().Name; Platform = ChromelyRuntime.Platform; AppExeLocation = AppDomain.CurrentDomain.BaseDirectory; StartUrl = "local://app/index.html"; DebuggingMode = true; UrlSchemes = new List <UrlScheme>(); CefDownloadOptions = new CefDownloadOptions(); WindowOptions = new WindowOptions(); if (string.IsNullOrWhiteSpace(WindowOptions.Title)) { WindowOptions.Title = AppName; } UrlSchemes.AddRange(new List <UrlScheme>() { new UrlScheme(DefaultSchemeName.RESOURCE, "local", string.Empty, string.Empty, UrlSchemeType.Resource, false), new UrlScheme(DefaultSchemeName.REQUEST, "http", "chromely.com", string.Empty, UrlSchemeType.LocalRquest, false), new UrlScheme(DefaultSchemeName.COMMAND, "http", "command.com", string.Empty, UrlSchemeType.Command, false), new UrlScheme(DefaultSchemeName.GITHUBSITE, string.Empty, string.Empty, "https://github.com/chromelyapps/Chromely", UrlSchemeType.ExternalBrowser, true) }); ControllerAssemblies = new List <ControllerAssemblyInfo>(); CustomSettings = new Dictionary <string, string>() { ["cefLogFile"] = "logs\\chromely.cef.log", ["logSeverity"] = "info", ["locale"] = "en-US" }; }
public DefaultConfiguration() { AppName = Assembly.GetEntryAssembly()?.GetName().Name; Platform = ChromelyRuntime.Platform; AppExeLocation = AppDomain.CurrentDomain.BaseDirectory; StartUrl = "local://app/chromely.html"; DebuggingMode = true; UrlSchemes = new List <UrlScheme>(); CefDownloadOptions = new CefDownloadOptions(); WindowOptions = new WindowOptions { Title = AppName }; UrlSchemes.AddRange(new List <UrlScheme>() { new UrlScheme(DefaultSchemeName.RESOURCE, "local", string.Empty, string.Empty, UrlSchemeType.Resource, false), new UrlScheme(DefaultSchemeName.CUSTOM, "http", "chromely.com", string.Empty, UrlSchemeType.Custom, false), new UrlScheme(DefaultSchemeName.COMMAND, "http", "command.com", string.Empty, UrlSchemeType.Command, false), new UrlScheme(DefaultSchemeName.GITHUBSITE, string.Empty, string.Empty, "https://github.com/chromelyapps/Chromely", UrlSchemeType.External, true) }); ControllerAssemblies = new List <ControllerAssemblyInfo>(); var appDirectory = AppDomain.CurrentDomain.BaseDirectory; var externalControllerFile = Path.Combine(appDirectory, "Chromely.External.Controllers.dll"); if (File.Exists(externalControllerFile)) { ControllerAssemblies.RegisterServiceAssembly("Chromely.External.Controllers.dll"); var assemblyOptions = new AssemblyOptions(externalControllerFile, null, "app"); UrlSchemes.Add(new UrlScheme(DefaultSchemeName.ASSEMBLYRESOURCE, "assembly", "app", string.Empty, UrlSchemeType.AssemblyResource, false, assemblyOptions)); var mixAssemblyOptions = new AssemblyOptions(externalControllerFile, null, "appresources"); UrlSchemes.Add(new UrlScheme(DefaultSchemeName.MIXASSEMBLYRESOURCE, "mixassembly", "app", string.Empty, UrlSchemeType.AssemblyResource, false, mixAssemblyOptions)); } CustomSettings = new Dictionary <string, string>() { ["cefLogFile"] = "logs\\chromely.cef.log", ["logSeverity"] = "info", ["locale"] = "en-US" }; }