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

View File

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