示例#1
0
 /// <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;
 }
示例#2
0
 /// <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);
 }