コード例 #1
0
        public void RegionLoaded(Scene scene)
        {
            if (!m_Enabled)
            {
                return;
            }

            if (m_UserManagement == null)
            {
                m_UserManagement  = scene.RequestModuleInterface <IUserManagement>();
                m_OfflineIM       = scene.RequestModuleInterface <IOfflineIMService>();
                m_Messaging       = scene.RequestModuleInterface <IMessageTransferModule>();
                m_ForeignImporter = new ForeignImporter(m_UserManagement);

                if (m_ServiceLocation.Equals("local"))
                {
                    m_LocalGroupsConnector = new GroupsServiceLocalConnectorModule(m_Config, m_UserManagement);
                    // Also, if local, create the endpoint for the HGGroupsService
                    new HGGroupsServiceRobustConnector(m_Config, MainServer.Instance, string.Empty,
                                                       scene.RequestModuleInterface <IOfflineIMService>(), scene.RequestModuleInterface <IUserAccountService>());
                }
                else
                {
                    m_LocalGroupsConnector = new GroupsServiceRemoteConnectorModule(m_Config, m_UserManagement);
                }

                m_CacheWrapper = new RemoteConnectorCacheWrapper(m_UserManagement);
            }
        }
        public void RegionLoaded(Scene scene)
        {
            if (!m_Enabled)
            {
                return;
            }

            if (m_UserManagement == null)
            {
                m_UserManagement  = scene.RequestModuleInterface <IUserManagement>();
                m_ForeignImporter = new ForeignImporter(m_UserManagement);
            }
        }
コード例 #3
0
 public RemoteConnectorCacheWrapper(IUserManagement uman)
 {
     m_ForeignImporter = new ForeignImporter(uman);
 }
コード例 #4
0
 // 1 minutes
 public RemoteConnectorCacheWrapper(IUserManagement uman)
 {
     m_ForeignImporter = new ForeignImporter(uman);
 }
 public GroupsServiceLocalConnectorModule(IConfigSource config, IUserManagement uman)
 {
     Init(config);
     m_UserManagement  = uman;
     m_ForeignImporter = new ForeignImporter(uman);
 }
コード例 #6
0
        public void RegionLoaded(Scene scene)
        {
            if (!m_Enabled)
                return;

            if (m_UserManagement == null)
            {
                m_UserManagement = scene.RequestModuleInterface<IUserManagement>();
                m_OfflineIM = scene.RequestModuleInterface<IOfflineIMService>();
                m_Messaging = scene.RequestModuleInterface<IMessageTransferModule>();
                m_ForeignImporter = new ForeignImporter(m_UserManagement);

                if (m_ServiceLocation.Equals("local"))
                {
                    m_LocalGroupsConnector = new GroupsServiceLocalConnectorModule(m_Config, m_UserManagement);
                    // Also, if local, create the endpoint for the HGGroupsService
                    new HGGroupsServiceRobustConnector(m_Config, MainServer.Instance, string.Empty, 
                        scene.RequestModuleInterface<IOfflineIMService>(), scene.RequestModuleInterface<IUserAccountService>());

                }
                else
                    m_LocalGroupsConnector = new GroupsServiceRemoteConnectorModule(m_Config, m_UserManagement);

                m_CacheWrapper = new RemoteConnectorCacheWrapper(m_UserManagement);
            }

        }
コード例 #7
0
 public GroupsServiceLocalConnectorModule(IConfigSource config, IUserManagement uman)
 {
     Init(config);
     m_UserManagement = uman;
     m_ForeignImporter = new ForeignImporter(uman);
 }
コード例 #8
0
        public void RegionLoaded(Scene scene)
        {
            if (!m_Enabled)
                return;

            if (m_UserManagement == null)
            {
                m_UserManagement = scene.RequestModuleInterface<IUserManagement>();
                m_ForeignImporter = new ForeignImporter(m_UserManagement);
            }
        }