Skip to content

Instantly share code, notes, and snippets.

@AlexZeitler
Created February 16, 2012 09:40
Show Gist options
  • Select an option

  • Save AlexZeitler/1843665 to your computer and use it in GitHub Desktop.

Select an option

Save AlexZeitler/1843665 to your computer and use it in GitHub Desktop.
var builder = new ContainerBuilder();
builder.Register<ICustomerRepository, CustomerRepository>();
var container = builder.Build();
var config = GlobalConfiguration.Configuration;
config.ServiceResolver.SetResolver(
t => container.Resolve(t),
t => container.ResolveAll(t));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment