Inheritance: ISharedRegionModule, IAuthenticationService
Example #1
0
        public SceneHelpers(CoreAssetCache cache)
        {
            SceneManager = new SceneManager();

            m_assetService          = StartAssetService(cache);
            m_authenticationService = StartAuthenticationService();
            m_inventoryService      = StartInventoryService();
            m_gridService           = StartGridService();
            m_userAccountService    = StartUserAccountService();
            m_presenceService       = StartPresenceService();

            m_inventoryService.PostInitialise();
            m_assetService.PostInitialise();
            m_userAccountService.PostInitialise();
            m_presenceService.PostInitialise();

            m_cache = cache;

            m_physicsScene = StartPhysicsScene();

            SimDataService 
                = OpenSim.Server.Base.ServerUtils.LoadPlugin<ISimulationDataService>("OpenSim.Tests.Common.dll", null);
        }
Example #2
0
 private static void StartAuthenticationService(Scene testScene)
 {
     ISharedRegionModule service = new LocalAuthenticationServicesConnector();
     IConfigSource config = new IniConfigSource();
     
     config.AddConfig("Modules");
     config.AddConfig("AuthenticationService");
     config.Configs["Modules"].Set("AuthenticationServices", "LocalAuthenticationServicesConnector");
     config.Configs["AuthenticationService"].Set(
         "LocalServiceModule", "OpenSim.Services.AuthenticationService.dll:PasswordAuthenticationService");
     config.Configs["AuthenticationService"].Set("StorageProvider", "OpenSim.Data.Null.dll");
     
     service.Initialise(config);
     service.AddRegion(testScene);
     service.RegionLoaded(testScene);
     testScene.AddRegionModule(service.Name, service);
     //m_authenticationService = service;
 }
Example #3
0
        private static LocalAuthenticationServicesConnector StartAuthenticationService()
        {
            IConfigSource config = new IniConfigSource();
            config.AddConfig("Modules");
            config.AddConfig("AuthenticationService");
            config.Configs["Modules"].Set("AuthenticationServices", "LocalAuthenticationServicesConnector");
            config.Configs["AuthenticationService"].Set(
                "LocalServiceModule", "OpenSim.Services.AuthenticationService.dll:PasswordAuthenticationService");
            config.Configs["AuthenticationService"].Set("StorageProvider", "OpenSim.Data.Null.dll");

            LocalAuthenticationServicesConnector service = new LocalAuthenticationServicesConnector();
            service.Initialise(config);

            return service;
        }
Example #4
0
        public SceneHelpers(CoreAssetCache cache)
        {
            SceneManager = new SceneManager();

            m_assetService          = StartAssetService(cache);
            m_authenticationService = StartAuthenticationService();
            m_inventoryService      = StartInventoryService();
            m_gridService           = StartGridService();
            m_userAccountService    = StartUserAccountService();
            m_presenceService       = StartPresenceService();

            m_inventoryService.PostInitialise();
            m_assetService.PostInitialise();
            m_userAccountService.PostInitialise();
            m_presenceService.PostInitialise();

            m_cache = cache;
        }