Created
April 7, 2018 09:29
-
-
Save NMZivkovic/7da677b77f03df5e394bdb9e2c439fb0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var container = new WindsorContainer(); | |
container.Register(Component.For<Client>()); | |
container.Register(Component.For<IService1>() | |
.ImplementedBy<Service1>()); | |
container.Register(Component.For<IService2>() | |
.ImplementedBy<Service2>().LifestyleSingleton()); | |
var client = container.Resolve<Client>(); | |
client.InitiateServiceMethods(); | |
container.Release(client); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment