コード例 #1
0
 public HGInventoryServiceClient(string inventoryServerUrl, UserProfileCacheService userProfileCacheService, bool gridmode)
 {
     _inventoryServerUrl = HGNetworkServersInfo.ServerURI(inventoryServerUrl);
     //m_Uri = new Uri(_inventoryServerUrl);
     //m_userProfileCache = userProfileCacheService;
     m_gridmode = gridmode;
 }
コード例 #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="serversInfo"></param>
 /// <param name="httpServer"></param>
 /// <param name="assetCache"></param>
 /// <param name="dumpAssetsToFile"></param>
 public CommunicationsManager(NetworkServersInfo serversInfo, IHttpServer httpServer, IAssetCache assetCache,
     bool dumpAssetsToFile, LibraryRootFolder libraryRootFolder)
 {
     m_networkServersInfo = serversInfo;
     m_userProfileCacheService = new UserProfileCacheService(this, libraryRootFolder);
     m_httpServer = httpServer;
 }
コード例 #3
0
 public HGGridServicesGridMode(NetworkServersInfo servers_info, BaseHttpServer httpServe,
                               IAssetCache asscache, SceneManager sman, UserProfileCacheService userv)
     : base(servers_info, httpServe, asscache, sman)
 {
     m_remoteBackend    = new OGS1GridServices(servers_info, httpServe);
     m_userProfileCache = userv;
 }
コード例 #4
0
        public void AddRegion(Scene scene)
        {
            if (!m_Enabled)
            {
                return;
            }

            if (!m_Initialized)
            {
                m_Scene = scene;
                // HACK for now. Ugh!
                m_UserProfileService = m_Scene.CommsManager.UserProfileCacheService;
                // ugh!
                m_UserProfileService.SetInventoryService(this);
                scene.CommsManager.UserService.SetInventoryService(this);

                m_Initialized = true;
            }

            scene.RegisterModuleInterface <IInventoryService>(this);
        }