mirror of
https://github.com/ZetaKebab/MpcNET.git
synced 2025-01-14 22:18:43 +00:00
Improved connection reporting
This commit is contained in:
parent
3608c5edfc
commit
4663c2abf7
@ -1,7 +1,7 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.26403.3
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.29324.140
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Utilities", "Solution Utilities", "{83D06F7C-1336-4AC3-82BB-FDE7940D3C10}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
@ -16,18 +16,26 @@ Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release-Stable|Any CPU = Release-Stable|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{8994C820-7BA9-4BB8-B9EA-C608B07C4A11}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{8994C820-7BA9-4BB8-B9EA-C608B07C4A11}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{8994C820-7BA9-4BB8-B9EA-C608B07C4A11}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{8994C820-7BA9-4BB8-B9EA-C608B07C4A11}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{8994C820-7BA9-4BB8-B9EA-C608B07C4A11}.Release-Stable|Any CPU.ActiveCfg = Release-Stable|Any CPU
|
||||
{8994C820-7BA9-4BB8-B9EA-C608B07C4A11}.Release-Stable|Any CPU.Build.0 = Release-Stable|Any CPU
|
||||
{69F1D68F-9CD5-4EA6-9B47-2A7A9BF8CED9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{69F1D68F-9CD5-4EA6-9B47-2A7A9BF8CED9}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{69F1D68F-9CD5-4EA6-9B47-2A7A9BF8CED9}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{69F1D68F-9CD5-4EA6-9B47-2A7A9BF8CED9}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{69F1D68F-9CD5-4EA6-9B47-2A7A9BF8CED9}.Release-Stable|Any CPU.ActiveCfg = Release-Stable|Any CPU
|
||||
{69F1D68F-9CD5-4EA6-9B47-2A7A9BF8CED9}.Release-Stable|Any CPU.Build.0 = Release-Stable|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {9A76437C-2C8E-404A-82A0-18F64D43CC8E}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
@ -62,7 +62,8 @@ namespace MpcNET
|
||||
/// Called when response is read.
|
||||
/// </summary>
|
||||
/// <param name="responseLine">The response line.</param>
|
||||
void ReadResponse(string responseLine);
|
||||
/// <param name="commandText">The command text.</param>
|
||||
void ReadResponse(string responseLine, string commandText);
|
||||
|
||||
/// <summary>
|
||||
/// Called when disconnecting.
|
||||
|
@ -111,7 +111,7 @@ namespace MpcNET
|
||||
await writer.FlushAsync();
|
||||
}
|
||||
|
||||
response = await this.ReadResponseAsync();
|
||||
response = await this.ReadResponseAsync(commandText);
|
||||
if (response.Any())
|
||||
{
|
||||
lastException = null;
|
||||
@ -207,7 +207,7 @@ namespace MpcNET
|
||||
}
|
||||
}
|
||||
|
||||
private async Task<IReadOnlyList<string>> ReadResponseAsync()
|
||||
private async Task<IReadOnlyList<string>> ReadResponseAsync(string commandText)
|
||||
{
|
||||
var response = new List<string>();
|
||||
using (var reader = new StreamReader(this.networkStream, Encoding, true, 512, true))
|
||||
@ -216,7 +216,7 @@ namespace MpcNET
|
||||
do
|
||||
{
|
||||
responseLine = await reader.ReadLineAsync();
|
||||
this.mpcConnectionReporter.ReadResponse(responseLine);
|
||||
this.mpcConnectionReporter.ReadResponse(responseLine, commandText);
|
||||
if (responseLine == null)
|
||||
{
|
||||
break;
|
||||
|
@ -8,10 +8,11 @@
|
||||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
|
||||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
|
||||
<RootNamespace>MpcNET</RootNamespace>
|
||||
<Version>0.0.1-pre009</Version>
|
||||
<Version>0.0.2</Version>
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
<AssemblyVersion>0.0.1.0</AssemblyVersion>
|
||||
<FileVersion>0.0.1.0</FileVersion>
|
||||
<Configurations>Debug;Release;Release-Stable</Configurations>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||
@ -26,6 +27,13 @@
|
||||
<WarningsAsErrors />
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-Stable|AnyCPU'">
|
||||
<DocumentationFile>bin\Release\netstandard2.0\MpcNET.xml</DocumentationFile>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<WarningsAsErrors />
|
||||
<SbpSourceName>local-stable</SbpSourceName>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Remove="MpcNET.csproj.DotSettings" />
|
||||
<None Remove="stylecop.json" />
|
||||
@ -36,8 +44,12 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
|
||||
<PackageReference Include="Sundew.Base" Version="3.3.0" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
||||
<PackageReference Include="Sundew.Base" Version="4.0.0" />
|
||||
<PackageReference Include="Sundew.Build.Publish" Version="1.0.2">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
|
||||
</ItemGroup>
|
||||
|
||||
|
6
Sources/NuGet.Config
Normal file
6
Sources/NuGet.Config
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<packageSources>
|
||||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
|
||||
</packageSources>
|
||||
</configuration>
|
Loading…
Reference in New Issue
Block a user