Which of the following syntax is considered best practice?
For<IMyInterface>().LifecycleIs(new HybridLifecycle()).Use<MyImplementation>();
For<IMyInterface>().LifecycleIs(Lifecycles.GetLifecycle(InstanceScope.Hybrid)).Use<MyImplementation>();
if the first one is correct, can I create one HybridLifecycle object and use it for several For & lt ...... operators, or is it necessary for each For <> to create a new HybridLifecycle?
rekna source
share