Example #1
0
 /// <summary>
 /// Adds all required components to run the Umbraco back office
 /// </summary>
 public static IUmbracoBuilder AddBackOffice(this IUmbracoBuilder builder, Action <IMvcBuilder> configureMvc = null) => builder
 .AddConfiguration()
 .AddUmbracoCore()
 .AddWebComponents()
 .AddRuntimeMinifier()
 .AddBackOfficeCore()
 .AddBackOfficeAuthentication()
 .AddBackOfficeIdentity()
 .AddMembersIdentity()
 .AddBackOfficeAuthorizationPolicies()
 .AddUmbracoProfiler()
 .AddMvcAndRazor(configureMvc)
 .AddWebServer()
 .AddPreviewSupport()
 .AddHostedServices()
 .AddNuCache()
 .AddDistributedCache()
 .AddModelsBuilderDashboard()
 .AddUnattendedInstallInstallCreateUser()
 .AddCoreNotifications()
 .AddLogViewer()
 .AddExamine()
 .AddExamineIndexes();