...
The Lynicon options configuration methods include the following:
Configuration Method | Purpose |
---|---|
UseConfiguration(IConfigurationSection section) | Load the specified configuration section into Lynicon's core options |
UseModule<TModule>(params object[] moduleParams) | Load the specified module of type TModule into Lynicon, using a list of configuration parameters dependent on the module |
UseTypeSetup(Action<ITypeSystemRegistrar> setupTypes) | Use the given action to set up any number of custom type configurations. See Data System Configuration |
To see the possible methods for setting up membership systems see Setting Up User Management
...
Ensure the parameters for this setup method include IApplicationLifetime as some Lynicon modules may need to perform actions on application shutdown.
The ConstructLynicon() method is used to construct instances of all modules Lynicon will use.
Ensure that UseMvc() is called to initialise MVC. Routing setup withing this call is modified to all an initial call to .MapLyniconRoutes() to create all service endpoints Lynicon and its modules need. Then you have the option to use the MapDataRoute<TContent>() extension method to create routes which are content managed. See Content Routing for details on how this works.
The InitialiseLynicon(life) method then sets up membership, sets up content types, initialises all modules, and builds the data system.