Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • James 5 posts 75 karma points
    Jan 10, 2020 @ 11:54
    James
    0

    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

    Am I missing something? Thanks

Please Sign in or register to post replies

Write your reply to:

Draft