Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "OriAssurant"

I have the following classes and I am trying to implement Dependency Injection into calling a WCF Service. IUserProxyService : IApplicationService

CreateUser(User user)

UserProxyService : IUserProxyService
        private IUserRepository repository;

        public UserProxyService()
        {          
        }

        public UserProxyService(IUserRepository _repository)
        {
            repository = _repository;
        }

      CreateUser()
     {repository.CreateUser(User);}

IUserRepository
     CreateUser()
  
UserRepository : IUserRepository
       public UserRepository()
        {
            proxy = new WCFServiceClient();
        }

      //for mocking
        public UserRepository(IWCFService_proxy)
        {
            proxy = _proxy;
        }

      CreateUser(User user)
    { proxy.CreateUser();}

Now, in UserAppService class in Authorisation.User(Application project). I am adding IUserProxyService as an additional parameter to my constructor. So that I can use that object to make createuser calls.

However, after doing this, when I load the Users section on the web application I am getting a javascript error:

_Header.js:74 Uncaught TypeError: Cannot read property 'app' of undefined at HTMLDocument.<anonymous> (_Header.js:74) at i (jquery.min.js:2) at Object.fireWith [as resolveWith] (jquery.min.js:2) at Function.ready (jquery.min.js:2) at HTMLDocument.K (jquery.min.js:2)

In Header.js: //Manage linked accounts var _userLinkService = abp.services.app.userLink; - erroring line

What am I doing wrong? Can you guide me in the right direction?

I am noticing that it takes upwards of 1 min to load all of the symbols and libraries needed on the MVC + Angular app. (Downloaded in the past month, in terms of version)

Is that standard behavior?

Showing 151 to 152 of 152 entries