/// <summary> /// Write Configuration data in XML format to the XML Text Writer. /// </summary> /// <param name="writer">XML Text Writer</param> public override void WriteXmlConfig(XmlTextWriter writer) { writer.WriteStartElement("Hl7PeerToPeerConfiguration"); writer.WriteStartElement("FromActor"); writer.WriteStartElement("ActorName"); writer.WriteElementString("ActorType", ActorTypes.Type(FromActorName.Type)); writer.WriteElementString("ActorId", FromActorName.Id); writer.WriteEndElement(); writer.WriteElementString("AeTitle", FromActorAeTitle); writer.WriteEndElement(); writer.WriteStartElement("ToActor"); writer.WriteStartElement("ActorName"); writer.WriteElementString("ActorType", ActorTypes.Type(ToActorName.Type)); writer.WriteElementString("ActorId", ToActorName.Id); writer.WriteEndElement(); writer.WriteElementString("AeTitle", ToActorAeTitle); writer.WriteElementString("IpAddress", ToActorIpAddress); writer.WriteEndElement(); writer.WriteElementString("PortNumber", PortNumber.ToString()); writer.WriteElementString("MessageDelimiters", MessageDelimiters.ToString()); writer.WriteElementString("SecureConnection", SecureConnection.ToString()); writer.WriteElementString("AutoValidate", AutoValidate.ToString()); writer.WriteElementString("ActorOption1", ActorOption1); writer.WriteElementString("ActorOption2", ActorOption2); writer.WriteElementString("ActorOption3", ActorOption3); writer.WriteElementString("SessionId", _sessionId.ToString()); writer.WriteEndElement(); }
/// <summary> /// Write Configuration data in XML format to the XML Text Writer. /// </summary> /// <param name="writer">XML Text Writer</param> public override void WriteXmlConfig(XmlTextWriter writer) { writer.WriteStartElement("DicomPeerToPeerConfiguration"); writer.WriteStartElement("FromActor"); writer.WriteStartElement("ActorName"); writer.WriteElementString("ActorType", ActorTypes.Type(FromActorName.Type)); writer.WriteElementString("ActorId", FromActorName.Id); writer.WriteEndElement(); writer.WriteElementString("AeTitle", FromActorAeTitle); writer.WriteEndElement(); writer.WriteStartElement("ToActor"); writer.WriteStartElement("ActorName"); writer.WriteElementString("ActorType", ActorTypes.Type(ToActorName.Type)); writer.WriteElementString("ActorId", ToActorName.Id); writer.WriteEndElement(); writer.WriteElementString("AeTitle", ToActorAeTitle); writer.WriteElementString("IpAddress", ToActorIpAddress); writer.WriteEndElement(); writer.WriteElementString("PortNumber", PortNumber.ToString()); writer.WriteElementString("SecureConnection", SecureConnection.ToString()); writer.WriteElementString("AutoValidate", AutoValidate.ToString()); writer.WriteElementString("ActorOption1", ActorOption1); writer.WriteElementString("ActorOption2", ActorOption2); writer.WriteElementString("ActorOption3", ActorOption3); writer.WriteElementString("SessionId", _sessionId.ToString()); writer.WriteElementString("SourceDataDirectory", _sourceDataDirectory); writer.WriteElementString("StoreDataDirectory", _storeDataDirectory); writer.WriteElementString("StoreData", _storeData.ToString()); writer.WriteStartElement("DefinitionFiles"); foreach (System.String defintionFilename in _definitionFiles) { writer.WriteElementString("DefinitionFile", defintionFilename); } writer.WriteEndElement(); writer.WriteEndElement(); }