Skip to content

Instantly share code, notes, and snippets.

@mgroves
Created January 15, 2014 20:14
Show Gist options
  • Select an option

  • Save mgroves/8443658 to your computer and use it in GitHub Desktop.

Select an option

Save mgroves/8443658 to your computer and use it in GitHub Desktop.
public static class IocBootstrap
{
public static void Configure()
{
ObjectFactory.Initialize(x =>
{
x.Scan(scan =>
{
scan.TheCallingAssembly();
scan.WithDefaultConventions();
});
x.SetAllProperties(a => a.WithAnyTypeFromNamespaceContainingType<IWhateverService>());
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment