Skip to content

Instantly share code, notes, and snippets.

@blazey
Created June 18, 2015 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blazey/9153cfc81cce8f28f20a to your computer and use it in GitHub Desktop.
Save blazey/9153cfc81cce8f28f20a to your computer and use it in GitHub Desktop.
Conventional configuration and explicit configuration.
public class InstallScheduler : IWindsorInstaller
{
public void Install(IWindsorContainer container, IConfigurationStore store)
{
new InstallFeature<IScheduleCollectionFromAgent>().Install(container, store);
container.Register(
Component.For<IBackgroundJobClient>().ImplementedBy<BackgroundJobClient>());
JobActivator.Current = new WindsorJobActivator(container.Kernel);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment