I'm using Castle Windsor with my WCF service (hosted using console application).
This is my configuration:
container.AddFacility<WcfFacility>().
Register(Component.For<IService>().
ImplementedBy<MyService>().LifeStyle.Transient.
AsWcfService(new DefaultServiceModel().
AddBaseAddresses("someURI").
AddEndpoints(WcfEndpoint.BoundTo(new BasicHttpBinding())).
PublishMetadata(o => o.EnableHttpGet())));
I chose Transient lifestyle for my service and some of this service dependencies are also Transients. As I understand after reading the documentation and some blogs if you have component with lifestyle Transient you should be responsible for releasing it.
Where should I release my transient component? Is this my responsibility or maybe the WcfFacility take care for that somehow?
What is the difference between Transient and PerWcfSession lifestyle (btw what is the different between PerWcfSession and PerWcfOperation isnt each operation called on WCF service have its own session?)