public ExceptionWirePropertiesOptions(WirePropertiesOptions <COMPONENT_TYPE> parentOptions) { if (parentOptions.IsNull()) { throw new ArgumentNullException("parentOptions", "parentOptions is null."); } _parentOptions = parentOptions; }
public static ComponentRegistration <S> WireProperties <S>(this ComponentRegistration <S> reg, Action <WirePropertiesOptions <S> > optionCreation) { var opt = new WirePropertiesOptions <S>(); optionCreation(opt); if (opt.WireComponentProperties.IsNull()) { return(reg); } var c = new MutableConfiguration("wire-properties") .Attribute("value", opt.WireComponentProperties.Value.ToString()); opt.ExceptedPropertyNames.ForEach(p => c.CreateChild("except").Attribute("propertyName", p)); return(reg.Configuration(c)); }