Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created January 27, 2016 03:47
Show Gist options
  • Save dcomartin/a8568204bca528a94d45 to your computer and use it in GitHub Desktop.
Save dcomartin/a8568204bca528a94d45 to your computer and use it in GitHub Desktop.
public class MyNancyBootstrapper : DefaultNancyBootstrapper
{
protected override void ConfigureApplicationContainer(TinyIoCContainer container)
{
container.Register<IResourceLinker>(
(x, overloads) =>
new ResourceLinker(x.Resolve<IRouteCacheProvider>(),
x.Resolve<IRouteSegmentExtractor>(), x.Resolve<IUriFilter>()));
base.ConfigureApplicationContainer(container);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment