Esempio n. 1
0
        public void PostInitialize()
        {
            UserConfig cfg;
            if (m_core.TryGet<UserConfig>(out cfg))
            {
                m_cfg = cfg;
            }

            UserDataBaseService userDBservice;
            if (m_core.TryGet<UserDataBaseService>(out userDBservice))
            {
                m_userDataBaseService = userDBservice;
            }

            UserLoginService loginService;
            if (m_core.TryGet<UserLoginService>(out loginService))
            {
                m_loginService = loginService;
            }

            CommandConsole console;
            if ((m_core.TryGet<CommandConsole>(out console)) && (m_cfg != null)
                && (m_userDataBaseService != null) && (m_loginService != null))
            {
                RegisterConsoleCommands(console);
            }
        }
Esempio n. 2
0
 public AvatarCreationModule(UserDataBaseService userDataBaseService, UserConfig config, IInterServiceInventoryServices inventoryService)
 {
     // TODO: unused: m_config = config;
     m_userDataBaseService = userDataBaseService;
     m_inventoryService = inventoryService;
     m_inventoryServerUrl = config.InventoryUrl.OriginalString;
 }
Esempio n. 3
0
 public LoginSwitch( UserLoginService service,
                     IInterServiceInventoryServices interInventoryService,
                     IInventoryService inventoryService,
                     IGridService gridService,
                     UserConfig config)
 {
     m_UserLoginService = service;
     m_RealXtendLogin = new RealXtendLogin(service, interInventoryService, inventoryService, this, gridService, config);
 }
Esempio n. 4
0
        public MessageService(MessageServerConfig cfg, IGridServiceCore messageCore, UserDataBaseService userDataBaseService)
        {
            m_cfg = cfg;
            m_messageCore = messageCore;

            m_userDataBaseService = userDataBaseService;

            //??? 
            UserConfig uc = new UserConfig();
            uc.DatabaseConnect = cfg.DatabaseConnect;
            uc.DatabaseProvider = cfg.DatabaseProvider;
        }
Esempio n. 5
0
        public UserLoginService(
            UserManagerBase userManager, IInterServiceInventoryServices inventoryService,
            LibraryRootFolder libraryRootFolder,
            UserConfig config, string welcomeMess, IRegionProfileRouter regionProfileService)
            : base(userManager, libraryRootFolder, welcomeMess)
        {
            m_config = config;
            m_defaultHomeX = m_config.DefaultX;
            m_defaultHomeY = m_config.DefaultY;
            m_interInventoryService = inventoryService;
            m_regionProfileService = regionProfileService;

            m_GridService = new GridServicesConnector(config.GridServerURL.ToString());
        }
Esempio n. 6
0
 public RealXtendLogin(UserLoginService service,
                     IInterServiceInventoryServices interInventoryService,
                     IInventoryService inventoryService,
                     LoginSwitch loginSwitch,
                     IGridService gridService,
                     UserConfig config)
 {
     m_UserLoginService = service;
     m_interInventoryService = interInventoryService;
     m_InventoryService = inventoryService;
     m_LoginSwitch = loginSwitch;
     m_GridService = gridService;
     m_UserConfig = config;
     m_defaultHomeX = m_UserConfig.DefaultX;
     m_defaultHomeY = m_UserConfig.DefaultY;
     m_OpenSimMap = new OpenSimMap(config.GridServerURL, m_GridService);
 }
Esempio n. 7
0
        public UserLoginAuthService(
            UserManagerBase userManager, IInterServiceInventoryServices inventoryService,
            LibraryRootFolder libraryRootFolder,
            UserConfig config, string welcomeMess, IRegionProfileRouter regionProfileService)
            : base(userManager, welcomeMess, inventoryService, null, true, libraryRootFolder, null)
        {
            m_config = config;
            m_defaultHomeX = m_config.DefaultX;
            m_defaultHomeY = m_config.DefaultY;
            m_interInventoryService = inventoryService;
            m_regionProfileService = regionProfileService;

            NetworkServersInfo serversinfo = new NetworkServersInfo(1000, 1000);
            serversinfo.GridRecvKey = m_config.GridRecvKey;
            serversinfo.GridSendKey = m_config.GridSendKey;
            serversinfo.GridURL = m_config.GridServerURL.ToString();
            serversinfo.InventoryURL = m_config.InventoryUrl.ToString();
            serversinfo.UserURL = m_config.AuthUrl.ToString();
            SetServersInfo(serversinfo);
        }
Esempio n. 8
0
 public UserLoginService(
     OpenSim.Framework.Communications.UserProfileManager userManager,
     LibraryRootFolder libraryRootFolder, string mapServerURI, string profileServerURI,
     UserConfig config, string welcomeMess, IRegionProfileRouter regionProfileService)
     : base(userManager, libraryRootFolder, welcomeMess, mapServerURI, profileServerURI)
 {
     m_config = config;
     m_defaultHomeX = m_config.DefaultX;
     m_defaultHomeY = m_config.DefaultY;
     m_regionProfileService = regionProfileService;
 }
Esempio n. 9
0
 public UserLoginService(
     UserManagerBase userManager,
     LibraryRootFolder libraryRootFolder, string mapServerURI,
     UserConfig config, string welcomeMess, IRegionProfileRouter regionProfileService)
     : base(userManager, libraryRootFolder, welcomeMess, mapServerURI)
 {
     m_config = config;
     m_defaultHomeX = m_config.DefaultX;
     m_defaultHomeY = m_config.DefaultY;
     m_regionProfileService = regionProfileService;
 }