Initialize() public method

Initialize the service
public Initialize ( UUID regionID, IRegistryCore registry ) : void
regionID UUID
registry IRegistryCore
return void
Exemplo n.º 1
0
        /// <summary>
        ///     Create a caps handler for the given region
        /// </summary>
        /// <param name="regionID"></param>
        public void AddCapsForRegion(UUID regionID)
        {
            if (!m_RegionCapsServices.ContainsKey(regionID))
            {
                IRegionCapsService service = new PerRegionCapsService();
                service.Initialize(regionID, Registry);

                m_RegionCapsServices.Add(regionID, service);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        ///     Create a caps handler for the given region
        /// </summary>
        /// <param name="regionID"></param>
        public void AddCapsForRegion(UUID regionID)
        {
            if (!m_RegionCapsServices.ContainsKey (regionID)) {
                IRegionCapsService service = new PerRegionCapsService ();
                service.Initialize (regionID, Registry);

                m_RegionCapsServices.Add (regionID, service);
            }
        }