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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies