Factory.GetInstance<IMyType> - Unable to resolve type
Hi I register a custom Service in a composer like this:
public class RegisterServicesComposer
{
public void Compose(Composition composition)
{
composition.Register<ICurrentUserService, CurrentUserService>();
}
}
When I try to resolve an instance from a static helper method using:
var currentUserService = Current.Factory.GetInstance<ICurrentUserService>();
the application breaks with error Unable to resolve type.. ICurrentUserService
Factory.GetInstance<IMyType> - Unable to resolve type
Hi I register a custom Service in a composer like this:
When I try to resolve an instance from a static helper method using:
the application breaks with error
Unable to resolve type.. ICurrentUserService
Am I missing something? Thanks
is working on a reply...