Skip to content

Instantly share code, notes, and snippets.

@GraemeF
Created December 22, 2010 13:27
Show Gist options
  • Save GraemeF/751494 to your computer and use it in GitHub Desktop.
Save GraemeF/751494 to your computer and use it in GitHub Desktop.
internal class MyModuleLocator : INancyModuleLocator
{
private readonly FooModule _fooModule;
public MyModuleLocator(IFoo foo)
{
_fooModule = new FooModule(foo);
}
public IEnumerable<NancyModule> GetModules()
{
return new[] {_fooModule};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment