I have problem with lightinject to scan my other assemblies but i have no luck
Here is my implementation
public class StoreComposer : IUserComposer
{
public void Compose(Composition composition)
{
var container = composition.Concrete as LightInject.ServiceContainer;
container.AssemblyScanner.Scan(typeof(IOrderManager).Assembly, container);
}
}
In other project i have following code
public class BalCompositionRoot : ICompositionRoot
{
public void Compose(IServiceRegistry serviceRegistry)
{
serviceRegistry.Register(typeof(IOrderManager), typeof(OrderManager));
}
}
Can any one help me to get it work? Below screen shows the error
I made it work by calling another function from container instaed of Assembly scanner
public void Compose(Composition composition)
{
var container = composition.Concrete as LightInject.ServiceContainer;
container.RegisterFrom<BalCompositionRoot>();
}
Lightinject is not scaning assemblies
Hi,
I have problem with lightinject to scan my other assemblies but i have no luck
Here is my implementation
In other project i have following code
Can any one help me to get it work? Below screen shows the error
/Yasir
I found that how to call root composition.
I made it work by calling another function from container instaed of Assembly scanner
it may helps other :)
is working on a reply...