/// <summary> /// Sets the specified <paramref name="behaviors"/> into the configuration. /// </summary> /// <param name="behaviors">The behaviors to use.</param> /// <returns>the extension point for features configuration.</returns> public IConfigureFeatures Custom(params Feature.Behavior[] behaviors) { _behavior = null; if (behaviors != null) _behavior = feature => behaviors.Select(x => x(feature)).FirstOrDefault(x => x.HasValue); return this; }
/// <summary> /// Sets the specified <paramref name="behaviors"/> into the configuration. /// </summary> /// <param name="behaviors">The behaviors to use.</param> /// <returns>the extension point for features configuration.</returns> public IConfigureFeatures Custom(params Feature.Behavior[] behaviors) { _behavior = null; if (behaviors != null) { _behavior = feature => behaviors.Select(x => x(feature)).FirstOrDefault(x => x.HasValue); } return(this); }