Compare commits
2 Commits
9c80ad14f3
...
bf38c7dc1a
| Author | SHA1 | Date | |
|---|---|---|---|
| bf38c7dc1a | |||
| afb2102702 |
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net7.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using AS1024.CommunityDocumentationPage.Interfaces;
|
using AS1024.CommunityDocumentationPage.Interfaces;
|
||||||
using AS1024.CommunityDocumentationPage.Models;
|
using AS1024.CommunityDocumentationPage.Models;
|
||||||
using Newtonsoft.Json;
|
using System.Text.Json;
|
||||||
using System.Net.Http.Headers;
|
using System.Net.Http.Headers;
|
||||||
|
|
||||||
namespace AS1024.CommunityDocumentationPage.DIScopes
|
namespace AS1024.CommunityDocumentationPage.DIScopes
|
||||||
@@ -23,7 +23,9 @@ namespace AS1024.CommunityDocumentationPage.DIScopes
|
|||||||
HttpResponseMessage result = await client.GetAsync(BuildNetBoxURI());
|
HttpResponseMessage result = await client.GetAsync(BuildNetBoxURI());
|
||||||
string stringResult = await result.Content.ReadAsStringAsync();
|
string stringResult = await result.Content.ReadAsStringAsync();
|
||||||
var temp =
|
var temp =
|
||||||
JsonConvert.DeserializeObject<RouteTargets>(stringResult);
|
JsonSerializer.Deserialize<RouteTargets>(stringResult, new JsonSerializerOptions{
|
||||||
|
PropertyNamingPolicy = JsonNamingPolicy.SnakeCaseLower
|
||||||
|
});
|
||||||
|
|
||||||
foreach (var route in temp.Results)
|
foreach (var route in temp.Results)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user