public override IDeepCopyable CopyTo(IDeepCopyable other)
            {
                var dest = other as ChannelComponent;

                if (dest == null)
                {
                    throw new ArgumentException("Can only copy to an object of the same type", "other");
                }

                base.CopyTo(dest);
                if (TypeElement != null)
                {
                    dest.TypeElement = (Code <Hl7.Fhir.Model.Subscription.SubscriptionChannelType>)TypeElement.DeepCopy();
                }
                if (EndpointElement != null)
                {
                    dest.EndpointElement = (Hl7.Fhir.Model.FhirUri)EndpointElement.DeepCopy();
                }
                if (PayloadElement != null)
                {
                    dest.PayloadElement = (Hl7.Fhir.Model.FhirString)PayloadElement.DeepCopy();
                }
                if (HeaderElement != null)
                {
                    dest.HeaderElement = (Hl7.Fhir.Model.FhirString)HeaderElement.DeepCopy();
                }
                return(dest);
            }
Exemple #2
0
        public override UXElement GetWixBundleUXElement()
        {
            UXElement myUX = new UXElement();

            myUX.SourceFile = base.UxBinaryFilename;

            foreach (string resFile in TestUX.TestUxBinaries)
            {
                string[]       paths          = resFile.Split(new char[] { ';' });
                PayloadElement payloadElement = new PayloadElement();
                payloadElement.SourceFile = paths[0];
                myUX.Payloads.Add(payloadElement);
            }

            return(myUX);
        }