public TemplateAggregator(IDefinitionManager definitions, ITemplateProvider[] templateProviders) { this.definitions = definitions; this.providers = templateProviders.OrderBy(tp => tp.SortOrder).ToArray(); }