Skip to content

Instantly share code, notes, and snippets.

@dlidstrom
Created January 22, 2014 15:39
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 dlidstrom/8560921 to your computer and use it in GitHub Desktop.
Save dlidstrom/8560921 to your computer and use it in GitHub Desktop.
public class JobInstaller : IWindsorInstaller
{
public void Install(IWindsorContainer container, IConfigurationStore store)
{
container.Register(
Classes.FromThisAssembly()
.BasedOn<IJob>()
.WithServiceAllInterfaces()
.Configure(x => x.Named(x.Implementation.ToString()))
.LifestylePerThread());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment