Exemple #1
0
 public UserAccountController(
     IMapper mapper,
     IUserAccountDataService userAccountDataService)
 {
     _mapper = mapper;
     _userAccountDataService = userAccountDataService;
 }
        public void Initialise(IConfigSource source)
        {
            IConfig moduleConfig = source.Configs["Modules"];
            if (moduleConfig != null)
            {
                string name = moduleConfig.GetString("UserServices", "");
                if (name == Name)
                {
                    IConfig userConfig = source.Configs["UserService"];
                    if (userConfig == null)
                    {
                        m_log.Error("[USER CONNECTOR]: UserService missing from OpenSim.ini");
                        return;
                    }

                    string serviceDll = userConfig.GetString("LocalServiceModule",
                            String.Empty);

                    if (serviceDll == String.Empty)
                    {
                        m_log.Error("[USER CONNECTOR]: No LocalServiceModule named in section UserService");
                        return;
                    }

                    Object[] args = new Object[] { source };
                    m_UserService =
                            ServerUtils.LoadPlugin<IUserAccountDataService>(serviceDll,
                            args);

                    if (m_UserService == null)
                    {
                        m_log.Error("[USER CONNECTOR]: Can't load user service");
                        return;
                    }
                    m_Enabled = true;
                    m_log.Info("[USER CONNECTOR]: Local user connector enabled");
                }
            }
        }
 public AuthenticationService(IUserAccountDataService userAccountDataService)
 {
     accountData = userAccountDataService;
 }
 public UserAccountApplicationService(IUserAccountDataService _userAccountDataService, IUserAccountConverter _userAccountConverter)
 {
     this.userAccountDataService = _userAccountDataService;
     this.userAccountConverter = _userAccountConverter;
 }