Ejemplo n.º 1
0
        public ViewLocationConfiguration ModelsMatching <T>(Action <ModelMatchConfiguration> actionOnMatch)
        {
            var modelMatchConfiguration = new ModelMatchConfiguration(o => o.Model.CanBeCastTo <T>());

            Locators.Add(modelMatchConfiguration);
            actionOnMatch(modelMatchConfiguration);
            return(this);
        }
Ejemplo n.º 2
0
 public DynamicViewLocator(ModelMatchConfiguration configuration, IContainer container)
 {
     _configuration = configuration;
     _container = container;
 }