Commit Graph
40 Commits
Author SHA1 Message Date
Anirudh Agnihotry 621ed57461 Correcting Mismatch between ref and src (#39741)
* minor formatting

* ref changes
2020-07-30 14:52:46 -07:00
Anirudh Agnihotry e94cd90ad1 Adding attribute keyword to all the attributes in the ref (#39255) 2020-07-14 10:03:52 -07:00
Stephen Toub 6072e4d3a7 Update license headers (#38793) 2020-07-08 09:23:11 -04:00
Kevin JonesandStephen Toub 8f8cfd446d Additional nullable annotation on IPAddress (#34698)
* Additional nullable annotation on IPAddress.

* TryParse for System.Net.Http

* TryParse for System.Runtime.Numerics

* CoreLib TryParse nullable annotations

* Update Runtime reference source.

* NotNullWhen for Guid format.

* NotNullWhen for DateTime{Offset} format parameters

* Correct format parameter nullability for TimeSpan.

* Update reference source.

Co-authored-by: Stephen Toub <[email protected]>
2020-04-15 22:43:53 -04:00
Stephen Toub 1e3e7a9c36 Annotate System.Net.WebProxy for nullable reference types (#32612) 2020-02-22 21:11:01 -05:00
IlyaandStephen Toub b59225da89 Annotate System.Net.Primitives for nullable (#31794)
* Annotate System.Net.Primitives for nullable

* Fix build breaks in other libraries due to new annotations

Co-authored-by: Stephen Toub <[email protected]>
2020-02-21 17:59:19 +00:00
Levi Broderick 0d08b0232d API review URL should be HTTPS, not HTTP (#32281) 2020-02-14 08:07:46 -08:00
Cory Nelson 6f6c94dbb2 Add HTTP/3 draft 25 support. (#1294) 2020-01-26 23:50:54 -08:00
Tomas Weinfurt 041930b6b1 followup on SocketAddress validation (dotnet/corefx#40165)
* followup on SocketAddress validation
* update unknow faimily tests
* feedback from review
* fix spelling
* add comments about new values
* feedback from review


Commit migrated from https://github.com/dotnet/corefx/commit/b129f7657a1b93ce9cf577d769d9d03c862e2338
2019-08-10 12:44:54 -07:00
Tomas Weinfurt 0cbbd884eb initial support for new network protocols (dotnet/corefx#37315)
* initial support for new network protocols

* feedback from review

* fix compilation of AF_CAN


Commit migrated from https://github.com/dotnet/corefx/commit/6f6790fa8219359f2acbe4b0624a3fa9a0a6943b
2019-05-22 11:31:10 -07:00
Tanner Gooding 5a5ed7652a Regenerating reference sources in order to reorder enum fields (dotnet/corefx#37045)
Commit migrated from https://github.com/dotnet/corefx/commit/17382def0f680653870c31af1acf086ac41dcc0b
2019-04-23 13:40:45 -07:00
Ahson Khan 4fed6ab881 Auto-generate the reference assemblies and separate type forwards (dotnet/corefx#35557)
* Auto-generate the reference assemblies

* Add back type forwards.

* Revert "Add back type forwards."

This reverts commit dotnet/corefx@3acf74aabb.

* Add back TypeForwardedTo in .Forward.cs files

* Add new type forward files to the csproj files

* Add back if-defs and move TestUtilities comment from ref to source

* Remove duplicate definitions, delete unnecessary manual files,

* Fix build breaks

* Add back missing AsyncMethodBuilderAttr to S.Runtime ref

* Fix typo between XmlDocument and XPath.XDocument

* Add type forward fild missed from previous commit

* Fix ECDiffieHellmanCngPublicKey internal ctor for netfx 4.6.1

* Remove "this type was moved to comments" from the type forwards.

* Add back the Xml and Debugger* attributes to Xml.ReaderWriter

* Add back struct layout attributes

* Add back attributes missing (highlighted from api compat)

* Add missing toolbox item attribute in s.data.common.

* Add missing struct layout attributes and remove unnecessary additions

* Add back InterfaceTypeAttribute


Commit migrated from https://github.com/dotnet/corefx/commit/16689aa0a933517dc45465fc6edb6223222414a6
2019-02-27 19:39:21 -08:00
Jeremy Barton cefe07725e Add initial support for TLS 1.3 to .NET Core
* TLS 1.3 connections have been tested on Ubuntu 18.10 (OpenSSL 1.1.1).
* There's no public version of Windows with TLS 1.3 enabled.
* There's no public version of macOS with TLS 1.3 enabled out of the box.

When making use of SslProtocols.None (system default) TLS 1.3 is already working on Ubuntu 18.10, this change mainly makes it so that EncryptionPolicy.None is better handled, and that we can restrict-to and report TLS 1.3.

Commit migrated from https://github.com/dotnet/corefx/commit/d30157d9e48cf73e267994e45953722d18ccd4c6
2018-11-12 17:49:05 -08:00
Blake Hensley e976d8889c Add IPEndPoint.Parse & IPEndPoint.TryParse (dotnet/corefx#33119)
* Added IPEndPoint.TryParse and unit tests for valid data. Need Parse and invalid data tests.

* Parse implemented and unit tests complete

* Update comments

* Misc small fixes

* Simplify TryParse

* Refactor to address feedback

* Fix logic error

* Change TryParse call

* Add unit test for plus sign in port number

* Remove check for neg on uint


Commit migrated from https://github.com/dotnet/corefx/commit/ba6a1037c4e3dd0f0cc46a02a8a2b649e6adec7c
2018-10-30 16:01:26 -04:00
Sam Neirinck 68b24b8b69 Cleanup MSDN URL's (dotnet/corefx#32663)
* Fix non-https msdn links

* Additional HTTPS treatment


Commit migrated from https://github.com/dotnet/corefx/commit/0bfc4f3cf62f6fc29162ad5b1b89acc14124a375
2018-10-09 11:59:36 -07:00
Yevgeniy Redko 60ea7594b9 Implement ICollection<Cookie> on CookieCollection (dotnet/corefx#30080)
* Implement ICollection<Cookie> on CookieCollection

* Remove breaking change and improve tests

* Move netcoreapp Compile directives into separate ItemGroup in tests

* Revert m_list from List<Cookie> to ArrayList


Commit migrated from https://github.com/dotnet/corefx/commit/2c309c241329f66a79d004c12b05a9d82332b0eb
2018-06-03 00:42:33 +02:00
Martijn Laarman ea0ba1301e Add All enum value to DecompressionMethods (dotnet/corefx#30075)
Fixes dotnet/corefx#29243

Updates the Decompression tests to explicitly use
DecompressionMethods.All

Commit migrated from https://github.com/dotnet/corefx/commit/3c2ce7b352873d2faa088d07b06bc96a00f44e0e
2018-06-02 08:58:01 -04:00
Stephen Toub 707aceaacc Add Brotli support to SocketsHttpHandler (dotnet/corefx#29729)
* Add Brotli support to SocketsHttpHandler

- Add DecompressionMethods.Brotli
- Add support for Brotli to SocketsHttpHandler
- Add some tests

* Address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/91f2cd7e3de0c4eab799e4d946b1d50c4d15d930
2018-05-16 21:40:53 -04:00
Caesar Chen 5d76d98077 Update HttpStatusCode enum (dotnet/corefx#26727)
* Update HttpStatusCode enum

* address feedback


Commit migrated from https://github.com/dotnet/corefx/commit/504781cbfb166c71204b9077c0528623c85cf68c
2018-02-01 09:13:32 -08:00
Per Bjorklund 3396e90704 Implement Span overloads for IPAddress class
See issue dotnet/corefx#22607
This adds
public IPAddress(ReadOnlySpan<byte> address)
public IPAddress(ReadOnlySpan<byte> address, long scopeid)
public bool TryWriteBytes(Span<byte> destination, out int bytesWritten)
public static IPAddress Parse(ReadOnlySpan<char> ipSpan)
public static bool TryParse(ReadOnlySpan<char> ipSpan, out IPAddress address)
public static bool TryFormat(Span<char> destination, out int bytesWritten)


Commit migrated from https://github.com/dotnet/corefx/commit/0029b322154053a76b085ccb6f3f820a5c9a263f
2017-08-21 13:08:55 -04:00
Jose Perez Rodriguez dd708b105d Adding missing Configurations.props for refs and fixing the existing ones (dotnet/corefx#15291)
Adding missing Configurations.props for refs and fixing the existing ones

Commit migrated from https://github.com/dotnet/corefx/commit/2847e0ec9f7c9ac42d44d2bc8c6fd39e504b7a9b
2017-01-19 16:38:55 -08:00
Alex Perovich c3087a2ed5 Manual changes for ns2.0 rename
Commit migrated from https://github.com/dotnet/corefx/commit/7bba15c1d2518d3f0bb85c40ed87322edfdf87eb
2017-01-10 16:20:29 -08:00
Dan Moseley de594d4c71 Expose AddressFamily.Max and some Disposes (dotnet/corefx#14114)
Commit migrated from https://github.com/dotnet/corefx/commit/2932fa6096529adf4a1a1ec059bedb5973d240ad
2016-11-30 10:42:50 -08:00
Santiago Fernandez Madero 8073c84a5d Port System.Net.NetworkCredential missing members (dotnet/corefx#13905)
* Port System.Net.NetworkCredential missing members

Commit migrated from https://github.com/dotnet/corefx/commit/795c10f5d142162fc67152600699bf2f442ddff9
2016-11-29 00:57:27 -06:00
Jose Perez Rodriguez 343c3a19a8 Adding Obsolete Attributes to missing type/members (dotnet/corefx#13771)
Adding Obsolete Attributes to missing type/members

Commit migrated from https://github.com/dotnet/corefx/commit/277b781b6326e06716173132f68317ddc475f67d
2016-11-21 12:56:07 -08:00
danmosemsft 30073e629d Add SslProtocols.Default
Commit migrated from https://github.com/dotnet/corefx/commit/d3be245c793348cd89275296353a7a076cf6c350
2016-11-16 17:23:56 -08:00
Cristian Pop 1fb0a8ece8 TLS SystemDefault support.
Commit migrated from https://github.com/dotnet/corefx/commit/e882577f1cdf1c6505681c0a52a532d78f03c24f
2016-11-08 16:07:26 -08:00
Tijoy Tom Kalathiparambil fc0c590e7e Moving HttpVersion to System.Net.Primitives.
Contributes to https://github.com/dotnet/corefx/issues/12510
All private copies of HttpVersion from other
projects need to be removed.I am not sure how to
use an unpublished API , the doc talks about adding
direct csproj reference , but not clear if i can check-in
that way.


Commit migrated from https://github.com/dotnet/corefx/commit/614680e53a1712116e3849be96f982dfb034243d
2016-10-28 15:29:20 -07:00
Ale Contenti 6cdfdf2ea9 Add missing members in System.Net.Sockets.SocketException
Fixes dotnet/corefx#12459


Commit migrated from https://github.com/dotnet/corefx/commit/5bb3dc558cf1db53eb27ffe1d8eb72e2e2cf4077
2016-10-25 11:49:24 -07:00
Tijoy Tom Kalathiparambil 2cc2114782 Port remaining methods in CookieCollection and CookieContainer
Fixes https://github.com/dotnet/corefx/issues/12125
The required methods already exists , but were
internal.This change just expose them from the
public contracts.


Commit migrated from https://github.com/dotnet/corefx/commit/46b4c483783b63305b18e246b3c616077c990797
2016-10-24 11:01:27 -07:00
Stephen Toub a4b24a9204 Move System.Net.RequestCachePolicy/Level down to System.Net.Primitives
This allows us to remove the System.Xml dependency on System.Net.Requests.


Commit migrated from https://github.com/dotnet/corefx/commit/af5516e1d66eb4b7b228804e8634101b9d0d3bb9
2016-10-20 19:22:35 -04:00
Stephen Toub 9eb4f8e739 Add System.Net.Primitives serialization
Commit migrated from https://github.com/dotnet/corefx/commit/5646db2a20d3b97b42a9b3c9c774629e5f9545b9
2016-10-20 08:56:39 -04:00
Stephen Toub 6faf58f3a0 Add System.Net.Primitives serialization
Commit migrated from https://github.com/dotnet/corefx/commit/93bde6d2b0cc0797ffb0dca470836ac7f86f876d
2016-10-17 23:26:57 -04:00
Tijoy Tom Kalathiparambil 0110154f57 https://github.com/dotnet/corefx/issues/12131
Add back Address property , this's basically
resurrecting https://github.com/dotnet/corefx/pull/12595
since even after rebasing there's lot of merging to do.
It's easier to create a new PR then merging each file.


Commit migrated from https://github.com/dotnet/corefx/commit/70f31b1bd2b8e7e5ad148084fddab0bf1817b7f9
2016-10-14 11:23:02 -07:00
Stephen Toub 52e3c3d7ae Change all refs to use "throw null;" as member bodies
Following our new guidelines for ref assembly implementations and what GenApi now creates, this updates all of our ref .cs files to use "throw null;" for member bodies that can't just be empty (i.e. members that need to return a value either via the return type or via an out parameter).  I made the change programatically using a simple Roslyn-based tool.


Commit migrated from https://github.com/dotnet/corefx/commit/a9fdc79ff8feb5ad46e9fcbe18fdffcd0bd74679
2016-10-13 09:43:23 -04:00
Koundinya Veluri 0dd80e4488 Expose some missing threading types/members (Timer, exceptions, etc.) (dotnet/corefx#12392)
- Expose: Timer members, some exception types and members, ThreadExceptionEventArgs/Handler, Monitor.Wait with exitContext parameter
- Move CriticalHandle and remaining types from System.Runtime.Handles to System.Runtime, expose CriticalHandle[ZeroOr]MinusOneIsInvalid
- Revert base class of safe handle types that used to derive from SafeHandle[ZeroOr]MinusOneIsInvalid, and upgrade those projects to ns1.7

Commit migrated from https://github.com/dotnet/corefx/commit/de8eee4b26f5154698fddcd150a4c7487a69da64
2016-10-12 18:31:26 -07:00
stephentoub 685d9f5063 Add API review headers to ref files
Commit migrated from https://github.com/dotnet/corefx/commit/5240b324e50f9aabaa11d4b0c46acc34e370a724
2016-02-11 10:50:44 -05:00
dotnet-bot 39d1eab950 Update licensing headers
Commit migrated from https://github.com/dotnet/corefx/commit/7cad8486cbabbce0236bdf530e30db7036335524
2016-01-27 08:02:28 -08:00
Cristian Pop 89fb84e35c Obsoleting SSL2, 3. Re-creating System.Net.Primitives.sln.
Commit migrated from https://github.com/dotnet/corefx/commit/f3263e16dc651373163eb0c0ac4f24a5e0c9ba9a
2016-01-20 14:17:50 -08:00
Eric St. John 77309d4821 Update the version of all assemblies
This change updates the assembly versions of all of the corefx assemblies
as needed after we shipped stable versions.  Assemblies with API differences
get a minor version bump.  Assemblies with only bugfixes get a build version
bump.

In order to facilitate this I had to update the reference assemblies, so I took
the opportunity to port them all to the open.

[tfs-changeset: 1514419]


Commit migrated from https://github.com/dotnet/corefx/commit/40723b795917f2e98b64d45c17effb2546dd0cae
2015-08-13 17:07:57 -07:00