protected void NegotiateUrls(string module, string[] cmd) { //Combine the params and figure out the message string message = CombineParams(cmd, 2); //Get required interfaces IAsyncMessagePostService messagePost = m_registry.RequestModuleInterface <IAsyncMessagePostService>(); ICapsService capsService = m_registry.RequestModuleInterface <ICapsService>(); List <IRegionCapsService> clients = capsService.GetRegionsCapsServices(); //Go through all clients, and send the message asyncly to all agents that are root foreach (IRegionCapsService client in clients) { //Send the message to the region messagePost.Post(client.RegionHandle, BuildRequest("NegotiateUrl", message, UUID.Zero.ToString())); } }