Example #1
0
        // Tested through integration tests
        public void AttachViewModels(ViewTypePool types, ITemplateLogger logger)
        {
            if (IsPartial())
            {
                return;
            }

            var typeName = Parsing.ViewModelType;

            if (typeName.IsEmpty())
            {
                return;
            }

            ViewModel = types.FindTypeByName(typeName, message => logger.Log(this, message));
        }
Example #2
0
 public void AttachViewModels(ViewTypePool types, ITemplateLogger logger)
 {
     AllViews().Each(x => x.AttachViewModels(types, logger));
 }
 public void AttachViewModels(Assembly defaultAssembly, ViewTypePool types, ITemplateLogger logger)
 {
     throw new NotImplementedException();
 }
 public TemplateComposer(IParsingRegistrations <T> parsings) : this(ViewTypePool.Default(), parsings)
 {
 }
Example #5
0
        public void AttachViewModels(ViewTypePool types, ITemplateLogger logger)
        {
            var assembly = types.FindAssemblyByProvenance(Provenance);

            AllViews().Each(x => x.AttachViewModels(assembly, types, logger));
        }
Example #6
0
        // Tested through integration tests
        public void AttachViewModels(ViewTypePool types, ITemplateLogger logger)
        {
            if (IsPartial()) return;

            var typeName = Parsing.ViewModelType;
            if (typeName.IsEmpty()) return;

            ViewModel = types.FindTypeByName(typeName, message => logger.Log(this, message));
        }
 public void AttachViewModels(ViewTypePool types, ITemplateLogger logger)
 {
 }
Example #8
0
 public void AttachViewModels(ViewTypePool types, ITemplateLogger logger)
 {
     _bottles.Each(x => x.AttachViewModels(types, logger));
 }
 public void AttachViewModels(Assembly defaultAssembly, ViewTypePool types, ITemplateLogger logger)
 {
 }