Info
Version: | 0.5.1 |
Author(s): | Tomasz Margacz |
Last Update: | Thursday, February 22, 2018 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/AzureDatacenter.IP.Address.Ranges |
Install
Install-Package AzureDatacenter.IP.Address.Ranges
dotnet add package AzureDatacenter.IP.Address.Ranges
paket add AzureDatacenter.IP.Address.Ranges
AzureDatacenter.IP.Address.Ranges Download (Unzip the "nupkg" after downloading)
Dependencies
- Newtonsoft.Json(>= 9.0.1)
- Microsoft.AspNet.WebApi.Client(>= 5.2.4)
Tags
AzureDatacenterIPAddressService _handler = new AzureDatacenterIPAddressService();
// get all azure regions
var regions = _handler.GetRegionsWithIpAddress();
// get ip address list for region
var ipForRegion = _handler.GetIpAddressByRegion(RegionType.europenorth);
// check if region contain ip address
var resultTrue = _handler.RegionContainsIpAddress("40.79.211.99", RegionType.australiaeast);
var resultFalse = _handler.RegionContainsIpAddress("40.79.211.99", RegionType.europenorth);.