Miscellaneous fixes (#3)
This commit is contained in:
Родитель
a5c87547bb
Коммит
9861200896
|
@ -1,18 +1,16 @@
|
|||
|
||||
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=nanoframework_System.Net.Sockets.TcpClient&metric=alert_status)](https://sonarcloud.io/dashboard?id=nanoframework_System.Net.Sockets.TcpClient) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=nanoframework_System.Net.Sockets.TcpClient&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=nanoframework_System.Net.Sockets.TcpClient) [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![NuGet](https://img.shields.io/nuget/dt/nanoFramework.System.Net.Sockets.TcpClient.svg?label=NuGet&style=flat&logo=nuget)](https://www.nuget.org/packages/nanoFramework.System.Net.Sockets.TcpClient/) [![#yourfirstpr](https://img.shields.io/badge/first--timers--only-friendly-blue.svg)](https://github.com/nanoframework/Home/blob/main/CONTRIBUTING.md) [![Discord](https://img.shields.io/discord/478725473862549535.svg?logo=discord&logoColor=white&label=Discord&color=7289DA)](https://discord.gg/gCyBu8T)
|
||||
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=nanoframework_System.Net.Sockets.TcpClient&metric=alert_status)](https://sonarcloud.io/dashboard?id=nanoframework_System.Net.Sockets.TcpClient) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=nanoframework_System.Net.Sockets.TcpClient&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=nanoframework_System.Net.Sockets.TcpClient) [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![NuGet](https://img.shields.io/nuget/dt/nanoFramework.System.Net.Sockets.TcpClient.svg?label=NuGet&style=flat&logo=nuget)](https://www.nuget.org/packages/nanoFramework.System.Net.Sockets.TcpClient/) [![#yourfirstpr](https://img.shields.io/badge/first--timers--only-friendly-blue.svg)](https://github.com/nanoframework/Home/blob/main/CONTRIBUTING.md) [![Discord](https://img.shields.io/discord/478725473862549535.svg?logo=discord&logoColor=white&label=Discord&color=7289DA)](https://discord.gg/gCyBu8T)
|
||||
|
||||
![nanoFramework logo](https://raw.githubusercontent.com/nanoframework/Home/main/resources/logo/nanoFramework-repo-logo.png)
|
||||
|
||||
-----
|
||||
|
||||
# System.Net.Sockets.TcpClient
|
||||
# Welcome to the .NET **nanoFramework** System.Net.Sockets.TcpClient
|
||||
|
||||
This API implements the TcpListener and TcpClient classes with a pattern similar to the official .NET equivalent. [System.NET.Sockets.TcpClient](https://docs.microsoft.com/en-us/dotnet/api/system.net.sockets.TcpClient).
|
||||
|
||||
These are wrapper classes for the Socket when using TCP connections.
|
||||
The nanoframework implementation of TcpClient doesn't include the asynchronous methods and the Connected property.
|
||||
|
||||
|
||||
## Build status
|
||||
|
||||
| Component | Build Status | NuGet Package |
|
||||
|
@ -200,4 +198,4 @@ For more information see the [.NET Foundation Code of Conduct](https://dotnetfou
|
|||
|
||||
### .NET Foundation
|
||||
|
||||
This project is supported by the [.NET Foundation](https://dotnetfoundation.org).
|
||||
This project is supported by the [.NET Foundation](https://dotnetfoundation.org).
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
===================================================================================
|
||||
|
||||
API docs: https://docs.nanoframework.net/api/nanoFramework.System.Net.html
|
||||
API docs: https://docs.nanoframework.net/api/System.Net.Sockets.TcpClient.html
|
||||
|
||||
Browse our samples repository: https://github.com/nanoframework/samples
|
||||
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
<id>nanoFramework.System.Net.Sockets.TcpClient.DELIVERABLES</id>
|
||||
<version>$version$</version>
|
||||
<title>nanoFramework.System.Net.Sockets.TcpClient.DELIVERABLES</title>
|
||||
<authors>nanoFramework project contributors</authors>
|
||||
<owners>nanoFramework,dotnetfoundation</owners>
|
||||
<authors>nanoframework</authors>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<license type="file">LICENSE.md</license>
|
||||
<releaseNotes>
|
||||
|
@ -15,7 +14,7 @@
|
|||
<iconUrl>https://secure.gravatar.com/avatar/97d0e092247f0716db6d4b47b7d1d1ad</iconUrl>
|
||||
<icon>images\nf-logo.png</icon>
|
||||
<copyright>Copyright (c) .NET Foundation and Contributors</copyright>
|
||||
<description>** DON'T REFERENCE THIS PACKAGE ** Not meant for development. This package includes the deliverable artifacts of the System.Net assembly for .NET nanoFramework. These are for testing purposes and for updating the native code base of the library.</description>
|
||||
<description>** DON'T REFERENCE THIS PACKAGE ** Not meant for development. This package includes the deliverable artifacts of the System.Net.Sockets.TcpClient assembly for .NET nanoFramework. These are for testing purposes and for updating the native code base of the library.</description>
|
||||
<summary>nanoFramework.System.Net.Sockets.TcpClient.DELIVERABLES is not meant for development.</summary>
|
||||
<tags>
|
||||
</tags>
|
||||
|
|
|
@ -3,9 +3,8 @@
|
|||
<metadata>
|
||||
<id>nanoframework.System.Net.Sockets.TcpClient</id>
|
||||
<version>$version$</version>
|
||||
<title>nanoframework.System.Net.Sockets.TcpClient</title>
|
||||
<authors>nanoFramework project contributors</authors>
|
||||
<owners>nanoFramework,dotnetfoundation</owners>
|
||||
<title>nanoFramework.System.Net.Sockets.TcpClient</title>
|
||||
<authors>nanoframework</authors>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<license type="file">LICENSE.md</license>
|
||||
<releaseNotes>
|
||||
|
@ -16,11 +15,8 @@
|
|||
<icon>images\nf-logo.png</icon>
|
||||
<repository type="git" url="https://github.com/nanoframework/System.Net.Sockets.TcpClient" commit="$commit$" />
|
||||
<copyright>Copyright (c) .NET Foundation and Contributors</copyright>
|
||||
<description>
|
||||
This package includes the .NET nanoFramework System.Net assembly for .NET nanoFramework C# projects.
|
||||
This package requires a target with System.Net v$nativeVersion$ (checksum $checksum$).
|
||||
</description>
|
||||
<tags>nanoFramework C# csharp netmf netnf nanoFramework.System.Net</tags>
|
||||
<description>This package includes the System.Net.Sockets.TcpClient assembly for .NET nanoFramework C# projects.</description>
|
||||
<tags>nanoFramework C# csharp netmf netnf tcpclient networking</tags>
|
||||
<dependencies>
|
||||
<dependency id="nanoFramework.CoreLibrary" version="1.12.0-preview.9" />
|
||||
<dependency id="nanoFramework.Runtime.Events" version="1.10.0-preview.8" />
|
||||
|
@ -31,11 +27,11 @@
|
|||
</dependencies>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="nanoFramework.System.Net.Sockets.TcpClient\bin\Release\System.Net.dll" target="lib\System.Net.Sockets.TcpClient.dll" />
|
||||
<file src="nanoFramework.System.Net.Sockets.TcpClient\bin\Release\System.Net.pdb" target="lib\System.Net.Sockets.TcpClient.pdb" />
|
||||
<file src="nanoFramework.System.Net.Sockets.TcpClient\bin\Release\System.Net.pdbx" target="lib\System.Net.Sockets.TcpClient.pdbx" />
|
||||
<file src="nanoFramework.System.Net.Sockets.TcpClient\bin\Release\System.Net.pe" target="lib\System.Net.Sockets.TcpClient.pe" />
|
||||
<file src="nanoFramework.System.Net.Sockets.TcpClient\bin\Release\System.Net.xml" target="lib\System.Net.Sockets.TcpClient.xml" />
|
||||
<file src="nanoFramework.System.Net.Sockets.TcpClient\bin\Release\System.Net.Sockets.TcpClient.dll" target="lib\System.Net.Sockets.TcpClient.dll" />
|
||||
<file src="nanoFramework.System.Net.Sockets.TcpClient\bin\Release\System.Net.Sockets.TcpClient.pdb" target="lib\System.Net.Sockets.TcpClient.pdb" />
|
||||
<file src="nanoFramework.System.Net.Sockets.TcpClient\bin\Release\System.Net.Sockets.TcpClient.pdbx" target="lib\System.Net.Sockets.TcpClient.pdbx" />
|
||||
<file src="nanoFramework.System.Net.Sockets.TcpClient\bin\Release\System.Net.Sockets.TcpClient.pe" target="lib\System.Net.Sockets.TcpClient.pe" />
|
||||
<file src="nanoFramework.System.Net.Sockets.TcpClient\bin\Release\System.Net.Sockets.TcpClient.xml" target="lib\System.Net.Sockets.TcpClient.xml" />
|
||||
<file src="assets\readme.txt" target="" />
|
||||
<file src="README.md" target="docs\" />
|
||||
<file src="assets\nf-logo.png" target="images" />
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.32002.261
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.1.32210.238
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{11A8DD76-328B-46DF-9F39-F559912D0360}") = "nanoframework.System.Net.Sockets.TcpClient", "nanoframework.System.Net.Sockets.TcpClient\nanoframework.System.Net.Sockets.TcpClient.nfproj", "{1D0F04E3-6AB6-4DE0-88D0-5E30F6F5719B}"
|
||||
EndProject
|
||||
|
|
|
@ -10,11 +10,6 @@ using System.Runtime.InteropServices;
|
|||
[assembly: AssemblyProduct("System.Net")]
|
||||
[assembly: AssemblyCopyright("Copyright (c) .NET Foundation and Contributors")]
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// update this whenever the native assembly signature changes //
|
||||
[assembly: AssemblyNativeVersion("100.1.0.0")]
|
||||
////////////////////////////////////////////////////////////////
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
|
|
|
@ -383,6 +383,7 @@ namespace System.Net.Sockets
|
|||
_active = false;
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
if (!_disposed)
|
||||
|
|
|
@ -12,9 +12,11 @@
|
|||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<RootNamespace>nanoframework.System.Net.Sockets.TcpClient</RootNamespace>
|
||||
<AssemblyName>nanoframework.System.Net.Sockets.TcpClient</AssemblyName>
|
||||
<RootNamespace>System.Net.Sockets.TcpClient</RootNamespace>
|
||||
<AssemblyName>System.Net.Sockets.TcpClient</AssemblyName>
|
||||
<TargetFrameworkVersion>v1.0</TargetFrameworkVersion>
|
||||
<NF_IsCoreLibrary>True</NF_IsCoreLibrary>
|
||||
<DocumentationFile>bin\$(Configuration)\System.Net.Sockets.TcpClient.xml</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
|
|
Загрузка…
Ссылка в новой задаче