去掉重连提示,要不日志里面太多了

This commit is contained in:
pxzleo 2024-01-08 20:40:10 +08:00
parent c0f0f616dc
commit f9814532f5
2 changed files with 81 additions and 80 deletions

View File

@ -1,80 +1,81 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{0111EB6E-72E3-499C-A3BA-022F5BBC4CAF}</ProjectGuid> <ProjectGuid>{0111EB6E-72E3-499C-A3BA-022F5BBC4CAF}</ProjectGuid>
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Plane</RootNamespace> <RootNamespace>Plane</RootNamespace>
<AssemblyName>PlaneGcsSdk_Private_NET46</AssemblyName> <AssemblyName>PlaneGcsSdk_Private_NET46</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion> <TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
</PropertyGroup> <TargetFrameworkProfile />
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> </PropertyGroup>
<DebugSymbols>true</DebugSymbols> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugType>full</DebugType> <DebugSymbols>true</DebugSymbols>
<Optimize>false</Optimize> <DebugType>full</DebugType>
<OutputPath>bin\Debug\</OutputPath> <Optimize>false</Optimize>
<DefineConstants>TRACE;DEBUG;PRIVATE</DefineConstants> <OutputPath>bin\Debug\</OutputPath>
<ErrorReport>prompt</ErrorReport> <DefineConstants>TRACE;DEBUG;PRIVATE</DefineConstants>
<WarningLevel>4</WarningLevel> <ErrorReport>prompt</ErrorReport>
</PropertyGroup> <WarningLevel>4</WarningLevel>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> </PropertyGroup>
<DebugType>pdbonly</DebugType> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<Optimize>true</Optimize> <DebugType>pdbonly</DebugType>
<OutputPath>bin\Release\</OutputPath> <Optimize>true</Optimize>
<DefineConstants>TRACE;PRIVATE</DefineConstants> <OutputPath>bin\Release\</OutputPath>
<ErrorReport>prompt</ErrorReport> <DefineConstants>TRACE;PRIVATE</DefineConstants>
<WarningLevel>4</WarningLevel> <ErrorReport>prompt</ErrorReport>
<DocumentationFile>bin\Release\PlaneGcsSdk_Private_NET46.xml</DocumentationFile> <WarningLevel>4</WarningLevel>
</PropertyGroup> <DocumentationFile>bin\Release\PlaneGcsSdk_Private_NET46.xml</DocumentationFile>
<ItemGroup> </PropertyGroup>
<Reference Include="PresentationCore" /> <ItemGroup>
<Reference Include="System" /> <Reference Include="PresentationCore" />
<Reference Include="System.Core" /> <Reference Include="System" />
<Reference Include="System.Drawing" /> <Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" /> <Reference Include="System.Drawing" />
<Reference Include="System.Data.DataSetExtensions" /> <Reference Include="System.Xml.Linq" />
<Reference Include="Microsoft.CSharp" /> <Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data" /> <Reference Include="Microsoft.CSharp" />
<Reference Include="System.Net.Http" /> <Reference Include="System.Data" />
<Reference Include="System.Xml" /> <Reference Include="System.Net.Http" />
<Reference Include="WindowsBase" /> <Reference Include="System.Xml" />
</ItemGroup> <Reference Include="WindowsBase" />
<ItemGroup> </ItemGroup>
<Compile Include="..\PlaneGcsSdk_Private_NET45\Copters\CopterImplSharedPart.Private.cs"> <ItemGroup>
<Link>Copters\CopterImplSharedPart.Private.cs</Link> <Compile Include="..\PlaneGcsSdk_Private_NET45\Copters\CopterImplSharedPart.Private.cs">
</Compile> <Link>Copters\CopterImplSharedPart.Private.cs</Link>
<Compile Include="..\PlaneGcsSdk_Private_NET45\Copters\PlaneCopter.Private.cs"> </Compile>
<Link>Copters\PlaneCopter.Private.cs</Link> <Compile Include="..\PlaneGcsSdk_Private_NET45\Copters\PlaneCopter.Private.cs">
</Compile> <Link>Copters\PlaneCopter.Private.cs</Link>
<Compile Include="..\PlaneGcsSdk_Private_NET45\Copters\PLCopter.Private.cs"> </Compile>
<Link>Copters\EHCopter.Private.cs</Link> <Compile Include="..\PlaneGcsSdk_Private_NET45\Copters\PLCopter.Private.cs">
</Compile> <Link>Copters\EHCopter.Private.cs</Link>
<Compile Include="..\PlaneGcsSdk_Private_NET45\Copters\FakeCopter.Private.cs"> </Compile>
<Link>Copters\FakeCopter.Private.cs</Link> <Compile Include="..\PlaneGcsSdk_Private_NET45\Copters\FakeCopter.Private.cs">
</Compile> <Link>Copters\FakeCopter.Private.cs</Link>
<Compile Include="Properties\AssemblyInfo.cs" /> </Compile>
</ItemGroup> <Compile Include="Properties\AssemblyInfo.cs" />
<ItemGroup> </ItemGroup>
<ProjectReference Include="..\..\Plane.Libraries\Plane.Windows.Messages\Plane.Windows.Messages.csproj"> <ItemGroup>
<Project>{413C18E2-235F-4E15-B5C1-633657DE5D7A}</Project> <ProjectReference Include="..\..\Plane.Libraries\Plane.Windows.Messages\Plane.Windows.Messages.csproj">
<Name>Plane.Windows.Messages</Name> <Project>{413C18E2-235F-4E15-B5C1-633657DE5D7A}</Project>
</ProjectReference> <Name>Plane.Windows.Messages</Name>
<ProjectReference Include="..\PlaneGcsSdk.Contract_Private\PlaneGcsSdk.Contract_Private.csproj"> </ProjectReference>
<Project>{47141894-ece3-48ca-8dcf-ca751bda231e}</Project> <ProjectReference Include="..\PlaneGcsSdk.Contract_Private\PlaneGcsSdk.Contract_Private.csproj">
<Name>PlaneGcsSdk.Contract_Private</Name> <Project>{47141894-ece3-48ca-8dcf-ca751bda231e}</Project>
</ProjectReference> <Name>PlaneGcsSdk.Contract_Private</Name>
</ItemGroup> </ProjectReference>
<Import Project="..\PlaneGcsSdk_Shared\PlaneGcsSdk_Shared.projitems" Label="Shared" /> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="..\PlaneGcsSdk_Shared\PlaneGcsSdk_Shared.projitems" Label="Shared" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Other similar extension points exist, see Microsoft.Common.targets. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
<Target Name="BeforeBuild"> Other similar extension points exist, see Microsoft.Common.targets.
</Target> <Target Name="BeforeBuild">
<Target Name="AfterBuild"> </Target>
</Target> <Target Name="AfterBuild">
--> </Target>
-->
</Project> </Project>

View File

@ -250,7 +250,7 @@ namespace Plane.CommunicationManagement
{ {
CloseConnection(); CloseConnection();
await Task.Delay(250).ConfigureAwait(false); await Task.Delay(250).ConfigureAwait(false);
Message.Show($"正在重连:次数{++times}"); // Message.Show($"正在重连:次数{++times}");
await Task.Delay(250).ConfigureAwait(false); await Task.Delay(250).ConfigureAwait(false);
await ConnectAsync(); await ConnectAsync();