set Root Namespace for EmuMeterDriver

This commit is contained in:
ig 2023-09-11 11:31:02 +02:00
parent 908238244f
commit e538f6dd7e
2 changed files with 13 additions and 6 deletions

View File

@ -1,5 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<RootNamespace>InnovEnergy.App.EmuMeterDriver</RootNamespace>
</PropertyGroup>
<Import Project="../InnovEnergy.App.props" />
<ItemGroup>
@ -13,5 +18,7 @@
<ItemGroup>
<PackageReference Include="CliWrap" Version="3.6.0" />
</ItemGroup>
</Project>

View File

@ -12,7 +12,7 @@ public readonly struct Nic
private readonly JsonNode _Node;
public Nic(JsonNode node)
private Nic(JsonNode node)
{
_Node = node;
}
@ -134,11 +134,11 @@ public readonly struct Nic
.ExecuteBufferedAsync();
return JsonNode
.Parse(result.StandardOutput)!
.AsArray()
.Where(n=>n != null)
.Select(n=> new Nic(n!))
.ToList();
.Parse(result.StandardOutput)!
.AsArray()
.Where(n => n != null)
.Select(n => new Nic(n!))
.ToList();
}
catch
{