Source/NFX.Web/GeoLookup/GeoLookupService.cs
/// <summary>
/// Tries to lookup the location by ip/dns name. Returns null if no match could be made
/// </summary>
Tries to lookup the location by ip/dns name. Returns null if no match could be made
Tries to lookup the location by ip / dns name . Returns null if no match could be made
public GeoEntity Lookup(IPAddress address)
      {
        if (Status!=ControlStatus.Active || address==null) return null;
        var block = m_SubnetBST[new Subnet(address)];
        Location location;
        m_Locations.TryGetValue(block.LocationID, out location);
        return new GeoEntity(address, block, location);
      }
public GeoEntity Lookup ( IPAddress address ) { if ( Status != ControlStatus . Active || address == null ) return null ; var block = m_SubnetBST [ new Subnet ( address ) ] ; Location location ; m_Locations . TryGetValue ( block . LocationID , out location ) ; return new GeoEntity ( address , block , location ) ; }
Tries to lookup the location by ip/dns name.
Tries to lookup the location by ip / dns name .
address
IPAddress