Skip to content

Instantly share code, notes, and snippets.

@sandrinodimattia
Created July 23, 2012 05:45
Show Gist options
  • Save sandrinodimattia/3162133 to your computer and use it in GitHub Desktop.
Save sandrinodimattia/3162133 to your computer and use it in GitHub Desktop.
RegisterConfiguration IServerConfigurationProvider
private void RegisterConfiguration(string filename)
{
krn = new StandardKernel(new InlineModule(m => m
.Bind<IServerConfigurationProvider>()
.ToMethod<IServerConfigurationProvider>(
(e) =>
{
ServerConfigurationProvider config = new ServerConfigurationProvider();
config.SetConfigurationFile(filename);
return config;
})
)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment