forked from openrasta/archived-openrasta-legacy
-
Notifications
You must be signed in to change notification settings - Fork 1
Configuration
simonthorogood edited this page Dec 12, 2010
·
2 revisions
When OpenRasta starts up, it searches for an implementation of IConfigurationSource
. If you used the Visual Studio integration, you’ll already have this. OpenRasta will call Configure
on this source, and it’s your responsibility to set up the ResourceSpace
. You do this (mostly) via a combination of ResourceSpace.Uses
and ResourceSpace.Has
fluent declarations. You can usually structure such a method as follows:
public class Configuration : IConfigurationSource
{
public void Configure()
{
using (OpenRastaConfiguration.Manual)
{
// ResourceSpace.Uses declarations
// ResourceSpace.Has declarations
}
You can find out more about these types of declarations below: