From 873d7439598fc8ce567d14c891c084727bb9fc83 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Thu, 24 Oct 2019 01:19:01 +0300 Subject: [PATCH] NDB.Infrastructure.PublicIP --- NDB.Infrastructure.PublicIP/Class1.cs | 8 ++++++++ .../NDB.Infrastructure.PublicIP.csproj | 7 +++++++ NDB.Infrastructure.PublicIP/Notes.txt | 12 ++++++++++++ NDB.sln | 6 ++++++ 4 files changed, 33 insertions(+) create mode 100644 NDB.Infrastructure.PublicIP/Class1.cs create mode 100644 NDB.Infrastructure.PublicIP/NDB.Infrastructure.PublicIP.csproj create mode 100644 NDB.Infrastructure.PublicIP/Notes.txt diff --git a/NDB.Infrastructure.PublicIP/Class1.cs b/NDB.Infrastructure.PublicIP/Class1.cs new file mode 100644 index 0000000..ce2e6df --- /dev/null +++ b/NDB.Infrastructure.PublicIP/Class1.cs @@ -0,0 +1,8 @@ +using System; + +namespace NDB.Infrastructure.PublicIP +{ + public class Class1 + { + } +} diff --git a/NDB.Infrastructure.PublicIP/NDB.Infrastructure.PublicIP.csproj b/NDB.Infrastructure.PublicIP/NDB.Infrastructure.PublicIP.csproj new file mode 100644 index 0000000..9f5c4f4 --- /dev/null +++ b/NDB.Infrastructure.PublicIP/NDB.Infrastructure.PublicIP.csproj @@ -0,0 +1,7 @@ + + + + netstandard2.0 + + + diff --git a/NDB.Infrastructure.PublicIP/Notes.txt b/NDB.Infrastructure.PublicIP/Notes.txt new file mode 100644 index 0000000..6a134d2 --- /dev/null +++ b/NDB.Infrastructure.PublicIP/Notes.txt @@ -0,0 +1,12 @@ +https://www.ipify.org/ +https://geo.ipify.org/ +https://seeip.org/ +https://www.myip.com/api-docs/ + +APIs: +https://api.ipify.org?format=json +https://ip.seeip.org/json +https://api.myip.com + +- incearca sa faci cu WebClient. Vezi daca e mai bun ca HttpClient. Citeste pe net cum e recomandat sa fie folosite (dispose) +- vezi daca merita facut cu dependency injection. (inregistrare la startup in aplicatia consumator) \ No newline at end of file diff --git a/NDB.sln b/NDB.sln index 91cb2c6..1f9843d 100644 --- a/NDB.sln +++ b/NDB.sln @@ -13,6 +13,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Notes.txt = Notes.txt EndProjectSection EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NDB.Infrastructure.PublicIP", "NDB.Infrastructure.PublicIP\NDB.Infrastructure.PublicIP.csproj", "{FCB29735-E36A-442A-9307-F124782B8BB8}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -23,6 +25,10 @@ Global {F4AB0B71-6B14-402B-8B05-128AFB3E06D9}.Debug|Any CPU.Build.0 = Debug|Any CPU {F4AB0B71-6B14-402B-8B05-128AFB3E06D9}.Release|Any CPU.ActiveCfg = Release|Any CPU {F4AB0B71-6B14-402B-8B05-128AFB3E06D9}.Release|Any CPU.Build.0 = Release|Any CPU + {FCB29735-E36A-442A-9307-F124782B8BB8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FCB29735-E36A-442A-9307-F124782B8BB8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FCB29735-E36A-442A-9307-F124782B8BB8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FCB29735-E36A-442A-9307-F124782B8BB8}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE