You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hazzik edited this page Apr 14, 2012
·
2 revisions
By design all bootstrapper code in MvcExtensions should be placed into BootstrapperTasks. Here a small example of how to write your own task.
Your bootstrapper task should inherit BootstrapperTask base class. It has only one method to override Execute which returns TaskContinuation enumeration.
When the bootstrapper task written you should include it into task execution sequence:
//Global.asax.cspublicclassMvcApplication:WindsorMvcApplication{publicMvcApplication(){Bootstrapper.BootstrapperTasks.Include<RegisterControllers>()// other tasks.Include<MyCustomTask>();}}