From bb5e2e1f02f0392552c160eccae3ba9c8a8eef8a Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Fri, 3 Oct 2014 01:22:25 +0100 Subject: refactor: Use simpler auto-implemented property for HttpPort in GridRegion --- OpenSim/Services/Interfaces/IGridService.cs | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'OpenSim/Services') diff --git a/OpenSim/Services/Interfaces/IGridService.cs b/OpenSim/Services/Interfaces/IGridService.cs index 36ce0a1..ce50ab0 100644 --- a/OpenSim/Services/Interfaces/IGridService.cs +++ b/OpenSim/Services/Interfaces/IGridService.cs @@ -135,12 +135,7 @@ namespace OpenSim.Services.Interfaces /// /// The port by which http communication occurs with the region /// - public uint HttpPort - { - get { return m_httpPort; } - set { m_httpPort = value; } - } - protected uint m_httpPort; + public uint HttpPort { get; set; } /// /// A well-formed URI for the host region server (namely "http://" + ExternalHostName) @@ -151,10 +146,10 @@ namespace OpenSim.Services.Interfaces if (!String.IsNullOrEmpty(m_serverURI)) { return m_serverURI; } else { - if (m_httpPort == 0) + if (HttpPort == 0) return "http://" + m_externalHostName + "/"; else - return "http://" + m_externalHostName + ":" + m_httpPort + "/"; + return "http://" + m_externalHostName + ":" + HttpPort + "/"; } } set { @@ -290,7 +285,7 @@ namespace OpenSim.Services.Interfaces RegionSizeY = (int)ConvertFrom.RegionSizeY; m_internalEndPoint = ConvertFrom.InternalEndPoint; m_externalHostName = ConvertFrom.ExternalHostName; - m_httpPort = ConvertFrom.HttpPort; + HttpPort = ConvertFrom.HttpPort; RegionID = ConvertFrom.RegionID; ServerURI = ConvertFrom.ServerURI; TerrainImage = ConvertFrom.RegionSettings.TerrainImageID; @@ -310,7 +305,7 @@ namespace OpenSim.Services.Interfaces RegionSizeY = ConvertFrom.RegionSizeY; m_internalEndPoint = ConvertFrom.InternalEndPoint; m_externalHostName = ConvertFrom.ExternalHostName; - m_httpPort = ConvertFrom.HttpPort; + HttpPort = ConvertFrom.HttpPort; RegionID = ConvertFrom.RegionID; ServerURI = ConvertFrom.ServerURI; TerrainImage = ConvertFrom.TerrainImage; -- cgit v1.1