Skip to content

Configure

wolfbyte edited this page May 9, 2011 · 2 revisions

The Conventions.Configure methods are the entry point for the library. This simplest form of this method is covered here, the others are related to Convention Profiles and are covered there.

The simplest form takes a method with one parameter. This parameter represents the configuration for the conventional configuration. You call methods on this object to change the configuration. There are 2 main things you will want to do:

  1. Register Convention Installers
  2. Register Type Scanners

Once this method returns, all of the scanners have been run and all of your conventional types have been installed. While nothing is done until the end of the configuration method it is common to register all installers AND THEN register all scanners. It is worth noting that scanners ARE run in the order that they're registered.

NOTE: You can only call this method (or any of the overrides) once per AppDomain. This is intentional as the call is expensive and you are better off putting all of your convention configuration in one place.

Clone this wiki locally