/// <inheritdoc/> public override int GetHashCode() { unchecked { int result = base.GetHashCode(); if (MinInjectorVersion != null) { result = (result * 397) ^ MinInjectorVersion.GetHashCode(); } if (Uri != null) { result = (result * 397) ^ Uri.GetHashCode(); } if (Name != null) { result = (result * 397) ^ Name.GetHashCode(); } result = (result * 397) ^ Summaries.GetSequencedHashCode(); result = (result * 397) ^ Descriptions.GetSequencedHashCode(); if (Homepage != null) { result = (result * 397) ^ Homepage.GetHashCode(); } result = (result * 397) ^ NeedsTerminal.GetHashCode(); result = (result * 397) ^ Feeds.GetSequencedHashCode(); result = (result * 397) ^ Categories.GetSequencedHashCode(); result = (result * 397) ^ Icons.GetSequencedHashCode(); result = (result * 397) ^ Elements.GetSequencedHashCode(); result = (result * 397) ^ EntryPoints.GetSequencedHashCode(); result = (result * 397) ^ CapabilityLists.GetSequencedHashCode(); return(result); } }
public XmlDocument Start() { if (!IsWeb && string.IsNullOrEmpty(StartupExe)) { throw new ApplicationException("Non-web projects must have a startup exe"); } string url = string.Format("/session/{0}/start", ID); string data; using (StringWriter sw = new StringWriter()) { using (XmlTextWriter xw = new XmlTextWriter(sw)) { xw.WriteStartElement("options"); xw.WriteElementString("executable", StartupExe); xw.WriteElementString("arguments", UserArguments); xw.WriteElementString("monoarguments", MonoArguments); xw.WriteElementString("needsterminal", NeedsTerminal.ToString()); if (EnvironmentVariables.Count > 0) { xw.WriteStartElement("environment"); foreach (var item in EnvironmentVariables) { xw.WriteStartElement("variable"); xw.WriteAttributeString("name", item.Key); xw.WriteString(item.Value); xw.WriteEndElement(); } xw.WriteEndElement(); } foreach (var opt in StartOptions) { xw.WriteElementString(opt.Key, opt.Value); } if (XspOptions != null) { XspOptions.Serialize(xw); } xw.WriteEndElement(); } data = sw.ToString(); } return(Connection.HttpPost(url, data)); }
public override int GetHashCode() { unchecked { int hashCode = RelativePath?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ (Name?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Summary?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Category?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Version?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ Architecture.GetHashCode(); hashCode = (hashCode * 397) ^ NeedsTerminal.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { int hashCode = (RelativePath != null ? RelativePath.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Summary != null ? Summary.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Category != null ? Category.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Version != null ? Version.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Architecture.GetHashCode(); hashCode = (hashCode * 397) ^ NeedsTerminal.GetHashCode(); return(hashCode); } }
/// <inheritdoc/> public override int GetHashCode() { unchecked { int result = base.GetHashCode(); result = (result * 397) ^ (Command ?? "").GetHashCode(); result = (result * 397) ^ (BinaryName ?? "").GetHashCode(); result = (result * 397) ^ NeedsTerminal.GetHashCode(); result = (result * 397) ^ Names.GetSequencedHashCode(); result = (result * 397) ^ Summaries.GetSequencedHashCode(); result = (result * 397) ^ Descriptions.GetSequencedHashCode(); result = (result * 397) ^ Icons.GetSequencedHashCode(); return(result); } }
/// <inheritdoc/> public override int GetHashCode() { unchecked { int result = base.GetHashCode(); result = (result * 397) ^ Uri?.GetHashCode() ?? 0; result = (result * 397) ^ MinInjectorVersion?.GetHashCode() ?? 0; result = (result * 397) ^ Name?.GetHashCode() ?? 0; result = (result * 397) ^ Summaries.GetUnsequencedHashCode(); result = (result * 397) ^ Descriptions.GetUnsequencedHashCode(); result = (result * 397) ^ Homepage?.GetHashCode() ?? 0; result = (result * 397) ^ NeedsTerminal.GetHashCode(); result = (result * 397) ^ Feeds.GetUnsequencedHashCode(); result = (result * 397) ^ Categories.GetUnsequencedHashCode(); result = (result * 397) ^ Icons.GetUnsequencedHashCode(); result = (result * 397) ^ Elements.GetUnsequencedHashCode(); result = (result * 397) ^ EntryPoints.GetUnsequencedHashCode(); result = (result * 397) ^ CapabilityLists.GetUnsequencedHashCode(); return(result); } }