Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tjchaplin/5560116 to your computer and use it in GitHub Desktop.
Save tjchaplin/5560116 to your computer and use it in GitHub Desktop.
var container = new WindsorContainer();
container.Register(Classes.FromThisAssembly()
.BasedOn(typeof (ILoader<>))
.WithService
.Select(new []{typeof(ILoader<object>)}));
covariantArray = container.ResolveAll<ILoader<object>>();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment