OpenSim.Region.Framework.Scenes.SceneCommunicationService.InformNeighborsThatRegionisUp C# (CSharp) Method

InformNeighborsThatRegionisUp() public method

public InformNeighborsThatRegionisUp ( INeighbourService neighbourService, RegionInfo region ) : void
neighbourService INeighbourService
region OpenSim.Framework.RegionInfo
return void
        public void InformNeighborsThatRegionisUp(INeighbourService neighbourService, RegionInfo region)
        {
            //m_log.Info("[INTER]: " + debugRegionName + ": SceneCommunicationService: Sending InterRegion Notification that region is up " + region.RegionName);

            List<GridRegion> neighbours = m_scene.GridService.GetNeighbours(m_scene.RegionInfo.ScopeID, m_scene.RegionInfo.RegionID);
            m_log.DebugFormat("[INTERGRID]: Informing {0} neighbours that this region is up", neighbours.Count);
            foreach (GridRegion n in neighbours)
            {
                InformNeighbourThatRegionUpDelegate d = InformNeighboursThatRegionIsUpAsync;
                d.BeginInvoke(neighbourService, region, n.RegionHandle,
                              InformNeighborsThatRegionisUpCompleted,
                              d);
            }
        }