/// <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);
     }
 }
コード例 #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);
 }
コード例 #3
0
 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);
 }
コード例 #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));
 }
コード例 #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));
 }
コード例 #9
0
 /// <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));
 }
コード例 #10
0
 /// <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));
 }
コード例 #11
0
 /// <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));
 }
コード例 #12
0
 protected override void Load(IPropertyBag propertyBag)
 {
     propertyBag.ReadProperty("Factory", value => Factory = Type.GetType(value, true));
 }
コード例 #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);
 }