protected override void RegisterArea(
     AreaRegistrationContext context,
     IApplicationBus bus,
     PlatformAreaRegistrationState state)
 {
     this.RegisterApplicationRoutes(context);
 }
 protected override void RegisterArea(
     AreaRegistrationContext context,
     IApplicationBus bus,
     PlatformAreaRegistrationState state)
 {
     //this.RequireAuthorizationOnAllActions("framework/admin/view");
     this.RegisterRoutes(context);
     this.AddSettingsMenuItem(bus);
     new AutoMapperConfig().Initialize();
 }
 protected override void RegisterArea(
     AreaRegistrationContext context, 
     IApplicationBus bus, 
     PlatformAreaRegistrationState state)
 {
     context.MapRoute(
         "Content_default",
         "Content/{controller}/{action}/{id}",
         new { action = "Index", id = UrlParameter.Optional }
     );
 }
 private void RegisterPlatformAreas(IUnityContainer container, LogBuffer logBuffer)
 {
     var state = new PlatformAreaRegistrationState(container, logBuffer);
     AreaRegistration.RegisterAllAreas(state);
 }
 private void LogAreaRegistrationException(PlatformAreaRegistrationState state, Exception exception)
 {
     state.Log.Critical(
         "Area registration failed: Name='{0}', Type='{1}'.",
         this.AreaName,
         this.GetType().FullName);
     state.Log.Critical(exception);
 }
 private void LogAreaRegistering(PlatformAreaRegistrationState state)
 {
     state.Log.Information(
         "Registering area: AreaName='{0}', AreaRoutePrefix='{1}', Type='{2}'.",
         this.AreaName,
         this.AreaRoutePrefix,
         this.GetType().FullName);
 }
 /// <summary>
 /// Registers routes and performs other one-time startup actions for handling web requests.
 /// Guaranteed to execute exactly once, before the first web request is handled.
 /// However, service bus messages may be received and handled before this method is called.
 /// </summary>
 /// <param name="context">An AreaRegistrationContext.</param>
 /// <param name="bus">An MvcContrib in-process IApplicationBus. (Not the service bus.)</param>
 /// <param name="state">A PlatformAreaRegistrationState.</param>
 protected abstract void RegisterArea(
     AreaRegistrationContext context,
     IApplicationBus bus,
     PlatformAreaRegistrationState state);