Skip to content
simonthorogood edited this page Dec 18, 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
          }

See also

Clone this wiki locally