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);
 }
Ejemplo n.º 2
0
        public void WritePropertyBagComplexObjectTest()
        {
            PropertyBagHelper.WritePropertyBag(_propertyBag, TestXmlDocumentString, new XmlDocument());
            var property = PropertyBagHelper.ReadPropertyBag <XmlDocument>(_propertyBag, TestXmlDocumentString);

            Assert.IsNotNull(property);
        }
Ejemplo 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);
 }
Ejemplo 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);
        }
Ejemplo 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));
                }
            }
        }
Ejemplo n.º 7
0
 public void Save(IPropertyBag propertyBag, bool clearDirty, bool saveAllProperties)
 {
     PropertyBagHelper.WritePropertyBag(propertyBag, DestinationPropertyPropertyName, DestinationProperty);
 }
Ejemplo 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);
 }
Ejemplo 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);
 }
Ejemplo 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);
 }
Ejemplo 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);
 }
Ejemplo n.º 15
0
 public void Save(IPropertyBag propertyBag, bool clearDirty, bool saveAllProperties)
 {
     PropertyBagHelper.WritePropertyBag(propertyBag, DocumentSpecNamePropertyName, DocumentSpecName);
 }
Ejemplo n.º 16
0
 public void Save(IPropertyBag propertyBag, bool clearDirty, bool saveAllProperties)
 {
     PropertyBagHelper.WritePropertyBag(propertyBag, EncryptionKeyPropertyName, EncryptionKey);
 }
Ejemplo n.º 17
0
 public void Save(IPropertyBag propertyBag, bool clearDirty, bool saveAllProperties)
 {
     PropertyBagHelper.WritePropertyBag(propertyBag, TargetCharsetPropertyName, TargetCharset);
 }
Ejemplo n.º 18
0
 public void Save(IPropertyBag propertyBag, bool clearDirty, bool saveAllProperties)
 {
     PropertyBagHelper.WritePropertyBag(propertyBag, ExpressionPropertyName, Expression);
     PropertyBagHelper.WritePropertyBag(propertyBag, XPathPropertyName, XPath);
 }
Ejemplo n.º 19
0
 public void Save(IPropertyBag propertyBag, bool clearDirty, bool saveAllProperties)
 {
     PropertyBagHelper.WritePropertyBag(propertyBag, DefaultZipEntryFileExtensionPropertyName, DefaultZipEntryFileExtension);
 }