Exemple #1
0
 IEnumerable <IConfiguration <TinyIoCContainer> > CreateContainerConfigurations()
 {
     return
         (from type in configurationTypes
          where typeof(IConfiguration <TinyIoCContainer>).IsAssignableFrom(type)
          orderby ConfigurationOrderAttribute.GetOrder(type)
          select CreateContainerConfiguration(type));
 }
 public static IEnumerable <IConfiguration <T> > OrderByConfigurationOrderAttribute <T>(this IEnumerable <IConfiguration <T> > configurations)
 {
     return(configurations.OrderBy(c => ConfigurationOrderAttribute.GetOrder(c.GetType())));
 }