Lazy <ScaffolderBase []> GetScaffolders()
        {
            var scaffolders = new ScaffolderBase [] {
                new EmptyMvcControllerScaffolder(args),
                new MvcControllerWithActionsScaffolder(args),
                new EmptyApiControllerScaffolder(args),
                new ApiControllerWithActionsScaffolder(args),
                new ApiControllerEntityFrameworkScaffolder(args),
                new RazorPageScaffolder(args),
                new RazorPageEntityFrameworkScaffolder(args),
                new RazorPageEntityFrameworkCrudScaffolder(args)
            };

            return(new Lazy <ScaffolderBase []> (() => scaffolders));
        }
예제 #2
0
 public ScaffolderTemplateConfigurePage(ScaffolderArgs args, CancellationToken token) : base(args)
 {
     scaffolder             = args.Scaffolder;
     SubSubTitle            = scaffolder.Name;
     args.CancellationToken = token;
 }