Exemple #1
0
 public void Initialise(string opensimVersion, GridDBService gridDBService, IGridServiceCore gridCore, GridConfig config)
 {
     //m_opensimVersion = opensimVersion;
     m_gridDBService = gridDBService;
     m_gridCore      = gridCore;
     m_config        = config;
     RegisterHandlers();
 }
Exemple #2
0
 public void Initialize(GridDBService gridDBService, IGridServiceCore gridCore, GridConfig config)
 {
     //m_opensimVersion = opensimVersion;
     m_gridDBService = gridDBService;
     m_gridCore = gridCore;
     m_config = config;
     RegisterHandlers();
 }
        protected virtual void SetupGridServices()
        {
            // m_log.Info("[DATA]: Connecting to Storage Server");
            m_gridDBService = new GridDBService();
            m_gridDBService.AddPlugin(m_config.DatabaseProvider, m_config.DatabaseConnect);

            //Register the database access service so modules can fetch it
            // RegisterInterface<GridDBService>(m_gridDBService);

            m_gridMessageModule = new GridMessagingModule();
            m_gridMessageModule.Initialise(m_version, m_gridDBService, m_core, m_config);

            m_gridXmlRpcModule = new GridXmlRpcModule();
            m_gridXmlRpcModule.Initialise(m_version, m_gridDBService, m_core, m_config);

            m_gridRestModule = new GridRestModule();
            m_gridRestModule.Initialise(m_version, m_gridDBService, m_core, m_config);

            m_gridMessageModule.PostInitialise();
            m_gridXmlRpcModule.PostInitialise();
            m_gridRestModule.PostInitialise();
        }
        protected virtual void SetupGridServices()
        {
           // m_log.Info("[DATA]: Connecting to Storage Server");
            m_gridDBService = new GridDBService();
            m_gridDBService.AddPlugin(m_config.DatabaseProvider, m_config.DatabaseConnect);

            //Register the database access service so modules can fetch it
            // RegisterInterface<GridDBService>(m_gridDBService);

            m_gridMessageModule = new GridMessagingModule();
            m_gridMessageModule.Initialise(m_version, m_gridDBService, m_core, m_config);

            m_gridXmlRpcModule = new GridXmlRpcModule();
            m_gridXmlRpcModule.Initialise(m_version, m_gridDBService, m_core, m_config);

            m_gridRestModule = new GridRestModule();
            m_gridRestModule.Initialise(m_version, m_gridDBService, m_core, m_config);

            m_gridMessageModule.PostInitialise();
            m_gridXmlRpcModule.PostInitialise();
            m_gridRestModule.PostInitialise();
        }