示例#1
0
 internal static void Seal(this Features <IRuntimeFeature> features, IConfigurationProvider configurationProvider)
 {
     features.ForAll(feature => feature.Seal(configurationProvider));
     features.MakeReadOnly();
 }
示例#2
0
 public static void ReverseTo(this Features <IMappingFeature> features, Features <IMappingFeature> reversedFeatures) => features.ForAll(feature =>
 {
     var reverse = feature.Reverse();
     if (reverse != null)
     {
         reversedFeatures.Set(reverse);
     }
 });
示例#3
0
 internal static void Configure(this Features <IMappingFeature> features, TypeMap typeMap) => features.ForAll(feature => feature.Configure(typeMap));
示例#4
0
 internal static void Configure(this Features <IGlobalFeature> features, MapperConfiguration mapperConfiguration) => features.ForAll(feature => feature.Configure(mapperConfiguration));