/// <summary>
 /// Loads the pipeline component configuration. This base class implementation must be called by derived classes if they
 /// override it.
 /// </summary>
 /// <param name="propertyBag"></param>
 /// <param name="errorLog"></param>
 public void Load(IPropertyBag propertyBag, int errorLog)
 {
     propertyBag.ReadProperty(nameof(Enabled), value => Enabled = value);
     if (Enabled)
     {
         Load(propertyBag);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Loads the pipeline component configuration. This base class implementation must be called by derived classes
 /// if they override it.
 /// </summary>
 /// <param name="propertyBag"></param>
 /// <param name="errorLog"></param>
 public void Load(IPropertyBag propertyBag, int errorLog)
 {
     propertyBag.ReadProperty("Enabled", value => Enabled = value);
     Load(propertyBag);
 }
 protected override void Load(IPropertyBag propertyBag)
 {
     propertyBag.ReadProperty <PluginExecutionMode>("ExecutionMode", value => ExecutionMode = value);
     propertyBag.ReadProperty("Builder", value => Builder = Type.GetType(value, true));
 }
 /// <summary>
 /// Loads configuration properties for the component
 /// </summary>
 /// <param name="propertyBag">Configuration property bag</param>
 protected override void Load(IPropertyBag propertyBag)
 {
     propertyBag.ReadProperty(nameof(EnableFailedMessageRouting), value => EnableFailedMessageRouting     = value);
     propertyBag.ReadProperty(nameof(SuppressRoutingFailureReport), value => SuppressRoutingFailureReport = value);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Loads configuration properties for the component
 /// </summary>
 /// <param name="propertyBag">Configuration property bag</param>
 protected override void Load(IPropertyBag propertyBag)
 {
     propertyBag.ReadProperty("Extractors", value => Extractors = PropertyExtractorCollectionConverter.Deserialize(value));
 }
 protected override void Load(IPropertyBag propertyBag)
 {
     propertyBag.ReadProperty <ExecutionModeEnum>(nameof(ExecutionMode), value => ExecutionMode = value);
     propertyBag.ReadProperty(nameof(PluginType), value => PluginType = Type.GetType(value, true));
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Loads configuration properties for the component
 /// </summary>
 /// <param name="propertyBag">Configuration property bag</param>
 protected override void Load(IPropertyBag propertyBag)
 {
     propertyBag.ReadProperty("Components", value => Components = MicroPipelineComponentEnumerableConverter.Deserialize(value));
 }
 /// <summary>
 /// Loads configuration properties for the component from the <paramref name="propertyBag"/>.
 /// </summary>
 /// <param name="propertyBag">Configuration property bag</param>
 protected override void Load(IPropertyBag propertyBag)
 {
     propertyBag.ReadProperty(nameof(Components), value => _microComponent.LoadConfiguration(value));
 }
 /// <summary>
 /// Loads configuration properties for the component
 /// </summary>
 /// <param name="propertyBag">Configuration property bag</param>
 protected override void Load(IPropertyBag propertyBag)
 {
     propertyBag.ReadProperty("Encoding", value => Encoding = EncodingConverter.Deserialize(value));
     propertyBag.ReadProperty("Map", value => Map           = Type.GetType(value, true));
 }
 /// <summary>
 /// Loads configuration properties for the component
 /// </summary>
 /// <param name="propertyBag">Configuration property bag</param>
 protected override void Load(IPropertyBag propertyBag)
 {
     propertyBag.ReadProperty("Encoding", value => Encoding = EncodingConverter.Deserialize(value));
     propertyBag.ReadProperty <XmlTranslationModes>("Modes", value => Modes = value);
     propertyBag.ReadProperty("Translations", value => Translations         = XmlTranslationSetConverter.Deserialize(value));
 }
 /// <summary>
 /// Loads configuration properties for the component
 /// </summary>
 /// <param name="propertyBag">Configuration property bag</param>
 protected override void Load(IPropertyBag propertyBag)
 {
     propertyBag.ReadProperty <PluginExecutionMode>("ExecutionMode", value => ExecutionMode = value);
     propertyBag.ReadProperty("Policy", value => Policy = PolicyName.Parse(value));
 }
 protected override void Load(IPropertyBag propertyBag)
 {
     propertyBag.ReadProperty("Factory", value => Factory = Type.GetType(value, true));
 }
Ejemplo n.º 13
0
 /// <summary>
 /// Loads configuration properties for the component
 /// </summary>
 /// <param name="propertyBag">Configuration property bag</param>
 protected override void Load(IPropertyBag propertyBag)
 {
     propertyBag.ReadProperty("TrackingContextRetentionDuration", value => TrackingContextRetentionDuration = value);
     propertyBag.ReadProperty <ActivityTrackingModes>("TrackingModes", value => TrackingModes = value);
 }