public void Save(IPropertyBag propertyBag, bool clearDirty, bool saveAllProperties)
 {
     PropertyBagHelper.WritePropertyBag(propertyBag, SourcePropertyPathPropertyName, SourcePropertyPath);
     PropertyBagHelper.WritePropertyBag(propertyBag, DestinationPropertyPathPropertyName, DestinationPropertyPath);
     PropertyBagHelper.WritePropertyBag(propertyBag, ListNamePropertyName, ListName);
     PropertyBagHelper.WritePropertyBag(propertyBag, DefaultValuePropertyName, DefaultValue);
 }
Esempio n. 2
0
        public void WritePropertyBagComplexObjectTest()
        {
            PropertyBagHelper.WritePropertyBag(_propertyBag, TestXmlDocumentString, new XmlDocument());
            var property = PropertyBagHelper.ReadPropertyBag <XmlDocument>(_propertyBag, TestXmlDocumentString);

            Assert.IsNotNull(property);
        }
Esempio n. 3
0
 public virtual void Save(IPropertyBag pb, bool fClearDirty,
                          bool fSaveAllProperties)
 {
     PropertyBagHelper.WritePropertyBag(pb, NamespaceToModifyPropertyName, NamespaceToModify);
     PropertyBagHelper.WritePropertyBag(pb, NewNamespacePropertyName, NewNamespace);
     PropertyBagHelper.WritePropertyBag(pb, ShouldUpdateMessagewTypeContextPropertyName, ShouldUpdateMessageTypeContext);
 }
Esempio n. 4
0
        /// <summary>
        /// Saves current component configuration into the property bag.
        /// </summary>
        /// <param name="pb">Configuration property bag.</param>
        /// <param name="fClearDirty">Not used.</param>
        /// <param name="fSaveAllProperties">Not used.</param>
        void IPersistPropertyBag.Save(Microsoft.BizTalk.Component.Interop.IPropertyBag pb, bool fClearDirty, bool fSaveAllProperties)
        {
            string envelopeSpecNames = String.Empty;

            foreach (var item in this.EnvelopeSpecNames)
            {
                if (envelopeSpecNames == String.Empty)
                {
                    envelopeSpecNames = item.SchemaName;
                    continue;
                }

                envelopeSpecNames += String.Format("|{0}", item.SchemaName);
            }

            string documentSpecNames = String.Empty;

            foreach (var item in this.documentSpecNames)
            {
                if (documentSpecNames == String.Empty)
                {
                    documentSpecNames = item.SchemaName;
                    continue;
                }

                documentSpecNames += String.Format("|{0}", item.SchemaName);
            }
            PropertyBagHelper.WritePropertyBag(pb, "DocumentSpecNames", documentSpecNames);
            PropertyBagHelper.WritePropertyBag(pb, "EnvelopeSpecNames", envelopeSpecNames);
            PropertyBagHelper.WritePropertyBag(pb, "RecoverableInterchangeProcessing", this.RecoverableInterchangeProcessing);
            PropertyBagHelper.WritePropertyBag(pb, "ValidateDocument", this.ValidateDocument);
        }
Esempio n. 5
0
 public void Save(IPropertyBag propertyBag, bool clearDirty, bool saveAllProperties)
 {
     PropertyBagHelper.WritePropertyBag(propertyBag, PropertyPathPropertyName, PropertyPath);
     PropertyBagHelper.WritePropertyBag(propertyBag, XPathPropertyName, XPath);
     PropertyBagHelper.WritePropertyBag(propertyBag, PromoteProperytName, PromoteProperty);
     PropertyBagHelper.WritePropertyBag(propertyBag, ThrowIfNoMatchPropertyName, ThrowIfNoMatch);
 }
        public void Save(IPropertyBag propertyBag, bool clearDirty, bool saveAllProperties)
        {
            var props = this.GetType().GetProperties(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance);

            foreach (var prop in props)
            {
                if (prop.CanRead & prop.CanWrite)
                {
                    PropertyBagHelper.WritePropertyBag(propertyBag, prop.Name, prop.GetValue(this));
                }
            }
        }
Esempio n. 7
0
 public void Save(IPropertyBag propertyBag, bool clearDirty, bool saveAllProperties)
 {
     PropertyBagHelper.WritePropertyBag(propertyBag, DestinationPropertyPropertyName, DestinationProperty);
 }
Esempio n. 8
0
 public void Save(IPropertyBag propertyBag, bool clearDirty, bool saveAllProperties)
 {
     PropertyBagHelper.WritePropertyBag(propertyBag, VariablePropertyMappingPropertyName, VariablePropertyMapping);
     PropertyBagHelper.WritePropertyBag(propertyBag, UrlTemplatePropertyName, UrlTemplate);
 }
 public void Save(IPropertyBag propertyBag, bool clearDirty, bool saveAllProperties)
 {
     PropertyBagHelper.WritePropertyBag(propertyBag, ContextPropertyToPromotePropertyName, ContextPropertyToPromote);
     PropertyBagHelper.WritePropertyBag(propertyBag, QueryPropertyName, Query);
     PropertyBagHelper.WritePropertyBag(propertyBag, ConnectionStringConfigKeyPropertyName, ConnectionStringConfigKey);
 }
 public void Save(IPropertyBag propertyBag, bool clearDirty, bool saveAllProperties)
 {
     PropertyBagHelper.WritePropertyBag(propertyBag, XpathPropertyName, Xpath);
 }
Esempio n. 11
0
 /// <summary>
 /// Saves current component configuration into the property bag.
 /// </summary>
 /// <param name="pb">Configuration property bag.</param>
 /// <param name="fClearDirty">Not used.</param>
 /// <param name="fSaveAllProperties">Not used.</param>
 public void Save(Microsoft.BizTalk.Component.Interop.IPropertyBag pb, bool fClearDirty, bool fSaveAllProperties)
 {
     PropertyBagHelper.WritePropertyBag(pb, "MapName", _mapName);
     PropertyBagHelper.WritePropertyBag(pb, "Parameters", _parameters);
     PropertyBagHelper.WritePropertyBag(pb, "MapRequired", _mapRequired);
 }
Esempio n. 12
0
 public void Save(IPropertyBag propertyBag, bool clearDirty, bool saveAllProperties)
 {
     PropertyBagHelper.WritePropertyBag(propertyBag, PropertyPathPropertyName, PropertyPath);
     PropertyBagHelper.WritePropertyBag(propertyBag, ValuePropertyName, Value);
     PropertyBagHelper.WritePropertyBag(propertyBag, PromoteProperytName, PromoteProperty);
 }
Esempio n. 13
0
 /// <summary>
 /// Saves the current component configuration into the property bag.
 /// </summary>
 /// <param name="pb">Configuration property bag.</param>
 /// <param name="fClearDirty">Not used.</param>
 /// <param name="fSaveAllProperties">Not used.</param>
 public void Save(Microsoft.BizTalk.Component.Interop.IPropertyBag pb, Boolean fClearDirty, Boolean fSaveAllProperties)
 {
     PropertyBagHelper.WritePropertyBag(pb, "Encoding", EncodingName);
 }
 public void Save(IPropertyBag propertyBag, bool clearDirty, bool saveAllProperties)
 {
     PropertyBagHelper.WritePropertyBag(propertyBag, RecoverableInterchangeProcessingPropertyName, RecoverableInterchangeProcessing);
 }
Esempio n. 15
0
 public void Save(IPropertyBag propertyBag, bool clearDirty, bool saveAllProperties)
 {
     PropertyBagHelper.WritePropertyBag(propertyBag, DocumentSpecNamePropertyName, DocumentSpecName);
 }
Esempio n. 16
0
 public void Save(IPropertyBag propertyBag, bool clearDirty, bool saveAllProperties)
 {
     PropertyBagHelper.WritePropertyBag(propertyBag, EncryptionKeyPropertyName, EncryptionKey);
 }
Esempio n. 17
0
 public void Save(IPropertyBag propertyBag, bool clearDirty, bool saveAllProperties)
 {
     PropertyBagHelper.WritePropertyBag(propertyBag, TargetCharsetPropertyName, TargetCharset);
 }
Esempio n. 18
0
 public void Save(IPropertyBag propertyBag, bool clearDirty, bool saveAllProperties)
 {
     PropertyBagHelper.WritePropertyBag(propertyBag, ExpressionPropertyName, Expression);
     PropertyBagHelper.WritePropertyBag(propertyBag, XPathPropertyName, XPath);
 }
Esempio n. 19
0
 public void Save(IPropertyBag propertyBag, bool clearDirty, bool saveAllProperties)
 {
     PropertyBagHelper.WritePropertyBag(propertyBag, DefaultZipEntryFileExtensionPropertyName, DefaultZipEntryFileExtension);
 }