Initialise() public method

public Initialise ( IConfigSource source ) : void
source IConfigSource
return void
Beispiel #1
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;
        }
Beispiel #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;
 }