/// <summary> /// /// </summary> /// <returns></returns> public HostProperties(string hostname, string description, string[] origins, string[] extensions) { for (int i = 0; i < origins.Length; i++) { origins.SetValue(String.Format("chrome-extension://{0}/", origins[i]), i); } Hostname = hostname; Description = description; AllowedExtensions = extensions; AllowedOrigins = origins; ChromeManifestPath = Utils.CombineExePath(Hostname + "-chrome-manifest.json"); FirefoxManifestPath = Utils.CombineExePath(Hostname + "-firefox-manifest.json"); }
/// <summary> /// Creates the Host Object /// </summary> public Endpoint(HostProperties properties) { Properties = properties; LocationLog = Utils.CombineExePath(Properties.Hostname + ".log"); }