Commit Graph
31 Commits
Author SHA1 Message Date
Wes Haggard f27c7dc024 Update project files adding default configurations
This add a default configuration before the Import of dirs.props
for any projects that don't have Debug as the default configuration.

Removed Configuration and Platform properties set after dirs.props
as they would have no affect and just cause confusion.

Removed OutputType=Library property as it isn't necessary.


Commit migrated from https://github.com/dotnet/corefx/commit/9e1da13cf6d5ff4b37b1867beb3411a2fe61da6a
2016-01-02 23:50:21 -08:00
Guillermo Rangel 1a62aca39f System.Net EventSource Logging
Adding EventSources to substitute the previous logging model using
TraceSources.

In this PR 4 event sources are added:

-NetEventSource
-SocketsEventSource
-HttpEventSource
-SecurityEventSource

Event methods for NetEventSource, SocketsEventSource and HttpEventSource
are
fully added. SecurityEventSource has only a few of
the new event methods implemented.
Changes in production code are done to match this new implementation.
(Only changes for
events in Sockets and Http are done in this iteration).

Adding missing reference to LoggingHash

Missing Reference in Security csproj

Missing reference in NetworkInformation

Adding a reference and adding a missing new line.

Adding references and readonly modifier.

Adding another missing reference.
Adding some missing blank lines and making readonly the s_log in the
EventSources.

Completing SecurityEventSource

Adding missing all the security events that will substitute PrintInfo
calls.

Doing changes in code to reflect this.

Transforming SecurityEventSource into a Partial class

Some of the events were Windows specific, because of the enums they were
using. Those events are now in a partial class that is included when
those enums are defined.

Moving events to partial SecurityEventSource class

Some more events using Interop.SecurityStatus are moved into the partial
windows specific class.

Also, a missed non event header is added for Associate method in
HttpEventSource.

Deleting Logging reference to instead use LoggingHash

Addressing some of the PR feedback

Adding the Issue number to TODO for localization, and using BlockCopy
instead of a Loop to copy array. Also, correctly passing partialBuffer
instead of Buffer to the DumpArrayAsync method.


Commit migrated from https://github.com/dotnet/corefx/commit/1cd8bf635d4b9a6d8a7d1e25cd320814c993f38b
2015-12-29 12:14:39 -08:00
Pallavi Taneja 95a3b67166 Expose Assembly.GetEntryAssembly and TypeInfo.IsEquivalentTo()
Expose Assembly.GetEntryAssembly and TypeInfo.IsEquivalentTo() in System.Reflection.
Fixes issues dotnet/corefx#4146 , dotnet/corefx#2101


Commit migrated from https://github.com/dotnet/corefx/commit/e28fdbd9dd98810a81207c665fdc4e6b40b24e64
2015-12-21 14:56:26 -08:00
Pallavi Taneja 90c2d27bf1 Update Corefx Repo to depend on newer package versions
Disable failing tests with the tracking active issue


Commit migrated from https://github.com/dotnet/corefx/commit/98fdc29624cd791bba42ec1e0cd5c256f331adfe
2015-12-21 11:48:15 -08:00
stephentoub 77c4183d17 Update package validation to rc2-23610
Commit migrated from https://github.com/dotnet/corefx/commit/6f6303f0356be4d2dd4ac117373f1e37f8752248
2015-12-11 10:53:47 -05:00
dagood fbfb82cc8c Change all project.json files to validate. Remove lockfiles from source control and add to gitignore.
A few new references to pick up changes that happened over time.


Commit migrated from https://github.com/dotnet/corefx/commit/0d881222d8c3269157639e2e67056e5a83aad834
2015-12-09 16:25:26 -06:00
Eric St. John 65210efd31 Update project.lock.json to latest and lock
Commit migrated from https://github.com/dotnet/corefx/commit/6aeea5eabf2aff3baf15f501cabd156dfc5b3f8f
2015-11-09 22:38:10 -08:00
Eric St. John cddddd29f5 Remove unused dependencies
Commit migrated from https://github.com/dotnet/corefx/commit/78fd45ec74afc507a40df519b4df650ac9bd4c42
2015-11-09 22:37:37 -08:00
Eric Erhardt 27bc21d469 Add shims for the rest of the libc native calls.
This removes all direct dependencies from managed code
to native libc functions.

Fix dotnet/corefx#4106


Commit migrated from https://github.com/dotnet/corefx/commit/7077b4d74707b9e07787b5fbc1fbe6a0db202ea9
2015-10-28 09:30:41 -05:00
Pat Gavlin 067d8df910 Enable some System.Net tests for OSX/*nix.
- The NameResolution functional tests were disabled on all *nixes.
- The NameResolution PAL tests have been switched to the more modern
  style.
- The Sockets.Legacy tests were disabled for OS X when using
  run-test.sh.


Commit migrated from https://github.com/dotnet/corefx/commit/2d66c1f10b4b16d2db8930a504d3bc2560d85220
2015-10-27 14:34:55 -07:00
Eric St. John 8cc3c24b51 Update lock files that were missed in previous restore.
A change was made to DNX to no longer restore project.jsons
that are in nested folders.  This caused my batch update to miss
a number of tests and reference assembly projects.

This fixes the stale lock files, but restore is still broken.

[tfs-changeset: 1540448]


Commit migrated from https://github.com/dotnet/corefx/commit/3622cccc1b22fa1947a72d5126b59864e9d2fd0d
2015-10-21 18:59:09 -07:00
Eric St. John 543808303a Update dnx to v1.0.0-rc1-15838, update dotnet projects to generations
We need a new DNX to understand the latest packages.

We also need to move all "dotnet" projects to use dotnetX.X (generations)
now that the packages no longer have "dotnet" assets.

The new version of DNX dropped support for the aspnetcore
so I needed to update a few projects/packages that depended
on old package versions that had this moniker.

[tfs-changeset: 1540388]


Commit migrated from https://github.com/dotnet/corefx/commit/38f8d7a3ca1ee819c2b8eabb1c07ee4e99683c97
2015-10-21 17:03:48 -07:00
Pat Gavlin bbdb409db3 Fix a typo in pal_networking.cpp.
This change also re-enables a disabled NameResolution PAL test.

Fixes dotnet/corefx#2318.


Commit migrated from https://github.com/dotnet/corefx/commit/cf92d01126ad32393ea638ccf6b7504d0ebb414d
2015-10-20 13:29:51 -07:00
Pat Gavlin bb0dee6b16 Merge pull request dotnet/corefx#3978 from pgavlin/NameResolutionShims
Shim the last platform APIs used by S.N.NameResolution.

Commit migrated from https://github.com/dotnet/corefx/commit/47d8b285eb53442f1724c04528e9a2a2867f9b4a
2015-10-19 21:07:22 -07:00
Pat Gavlin 4df5d2833c Shim the last platform APIs used by S.N.NameResolution.
gethostbyaddr and gethostbyname had not yet been shimmed.


Commit migrated from https://github.com/dotnet/corefx/commit/55befb0c5a5633530fc85b9675a51e53d53ab116
2015-10-19 19:08:27 -07:00
bartonjs a768025131 Update all project.lock.json files
Built Windows_NT, Linux, OSX with /p:LockDependencies=true.

CoreFX beta-* => 23419
xunit.netcore.extensions => 00107


Commit migrated from https://github.com/dotnet/corefx/commit/a14b22705df253508bd5f2dab0407bd2c7e4d639
2015-10-19 16:00:44 -07:00
Pat Gavlin 5f1335ba57 Shim Interop.libc.socket().
Commit migrated from https://github.com/dotnet/corefx/commit/e4731ad428d538cbfc75d4dc2dcc8fd7d3aba534
2015-10-15 14:00:04 -07:00
Pat Gavlin e095a685c1 Shim in{,6}_pktinfo.
This moves all of the processing for control messages--arguably some of
the trickier interop in Sockets--into the native shims.


Commit migrated from https://github.com/dotnet/corefx/commit/2cdff2f366080b11420b63f932691200a881b5ba
2015-10-14 09:26:54 -07:00
Pat Gavlin 02a9387410 Shim socket addresses.
The socket address shim adds native accessors for the various bits that
managed code needs to access, namely:
- Address families
- Port numbers
- IP addresses

This change also updates the name resolution shim to use an iterator-based
design for walking host entries. This interface trades chattiness (a
P/Invoke per IP address) for memory footprint (various native and managed
allocations per IP address).


Commit migrated from https://github.com/dotnet/corefx/commit/ecc092e2dcc87a3a17370ff6951dc48c6b37fea7
2015-10-08 19:11:35 -07:00
dotnet-bot dfa25896ef Porting System.Net.NetworkInformation and System.Net.Utility to GitHub.
Completing dotnet/corefx#894


Commit migrated from https://github.com/dotnet/corefx/commit/5a67678925c2f2731fdb55eb3c88a287149e8db4
2015-10-05 17:24:18 -07:00
Ian Hays 0f8197a86c Update CoreFX to xunit 2.1.0
Commit migrated from https://github.com/dotnet/corefx/commit/87b48c58936d66fcb201b3a8ad0961fa055f23b9
2015-10-01 19:56:49 -07:00
Jonathan Miller 8ee9eefe46 Shim'ing out GetNameInfo, get/free addrinfo, and GetHostName.
The calls to getaddrinfo are not 1-to-1 with the native calls due to
complexities around the native structs. Calls using sockaddr and
addrinfo have nested structs pointing to different data depending
on if the IP is IPv4 or IPv6. To mitigate the complexities around
this code and around the underlying struct differences on the
currently supported platforms, I kept the same calling pattern (as
in Get* and Free*) but converted them to use an intermediate data
structure that is defined in the PAL. We can then take in the
required data from the Managed World and determine which native
types are required, handle all the native structs and casts, and
give back only the information that the managed code needs in a
much simpler format.


Commit migrated from https://github.com/dotnet/corefx/commit/f3191981b3739742e4f728b6a13a880abe12c5a6
2015-09-30 17:51:58 -07:00
Pallavi Taneja f2845b41f0 Update the lock files for the updated projects
Commit migrated from https://github.com/dotnet/corefx/commit/ebf752bf2c3fe7f6a04fbd3ef2db536700318e17
2015-09-29 17:18:49 -07:00
Pallavi Taneja 0185f7f683 Remove SecureString usages
Commit migrated from https://github.com/dotnet/corefx/commit/46db5bcbb484baf02f98320287d2fe0bd2e86599
2015-09-29 15:01:25 -07:00
bartonjs a52f41057c Update all CoreFx package references to 23328 build.
`build.cmd /p:LockDependencies=true` was the start of this change, but some errors with xunit build numbers led to all xunit upgrades being reset back to what they had in master.

project.json changes:
* System.Net.Security\src Switch off of explicit beta versioning, use the same baseline as everyone else.  The S.S.C.Algorithms explicit upgrade is no longer required.
* System.Net.Requests\tests didn't build.  Looking at the project.lock.json change, it appeared that a System.Net.Http reference was lost, restored it.
* System.Net.Http\tests didn't build. Looking at the project.lock.json change, it appeared that a System.IO.FileSystem reference was lost, restored it.
* System.Net.WebSockets.Client\src didn't build. Looking at the project.lock.json change, it appeared that a System.Collections (4.0.10) reference was lost, restored it.
* System.Diagnostics.TextWriterTraceListener\tests needed the runtime reference to load the correct System.Diagnostics.TraceSource binary.


Commit migrated from https://github.com/dotnet/corefx/commit/cec3a0f2db542bfa9d9c56bf988d966eacc35ad9
2015-09-29 11:40:37 -07:00
dotnet-bot 59f03d6341 Initial import of System.Net.Sockets.
Commit migrated from https://github.com/dotnet/corefx/commit/36c09c4802aebed9abfe4dd86fe9fbfd7b9c72cc
2015-09-23 21:06:21 -07:00
Alexander Köplinger 3e20a867b2 Update build to use DNX beta7 instead of beta5
The corefx build used an older beta5 version of DNX which hardcoded the path to bash in dnu, breaking the build on FreeBSD.
Updating DNX to the latest "stable" beta7 release fixes this.

After updating I noticed a few test projects didn't build anymore as they were missing some dependencies in project.json, added those.

Fixes dotnet/corefx#3173


Commit migrated from https://github.com/dotnet/corefx/commit/6df77fdbb6cf8e0d35a3074bb325f7810085daa3
2015-09-16 02:12:26 +02:00
stephentoub be1354fcb3 Disable GetHostByName_HostName test failing on OSX
dotnet/corefx#3218


Commit migrated from https://github.com/dotnet/corefx/commit/44b076537ffd3e36f2cd79a4a606e31b1241ab4a
2015-09-13 08:52:43 -04:00
stephentoub 5d73797669 Fix multiple MSB3277 build warnings
Fix several warnings of the form:
```
warning MSB3277: Found conflicts between different versions of the s
ame dependent assembly that could not be resolved.  These reference conflicts are listed in the build log when log verbosity is set to detailed.
```
Brings the number of warnings during a full build back down to 0.


Commit migrated from https://github.com/dotnet/corefx/commit/fc09b0b21a2c5dd6c5e4ee5df203b2f8def30e76
2015-09-03 14:40:38 -04:00
Nick Guerrera 31537a7c6f Fix build failure due to conflict between concurrent PRs
New usage of Interop.libc.close was added while it was
simultaneously being removed in another PR, which defeated
catching it via CI PR validation.


Commit migrated from https://github.com/dotnet/corefx/commit/f0b6c14964b508c734dec8add50284b94b85e4c8
2015-08-20 20:09:18 -07:00
dotnet-bot b262b29069 Porting System.Net.NameResolution.
Porting System.Net.NameResolution and tests. Adding a PAL layer for this contract together with x-plat implementations.
Pending work is marked either as "Shims" or with TODO comments and tracked by dotnet/corefx#2891 and dotnet/corefx#2894 (2 PAL tests disabled).

Features dotnet/corefx#893 dotnet/corefx#2484


Commit migrated from https://github.com/dotnet/corefx/commit/de079261cfaa3cc8e8025f91f95bac20fbc3c136
2015-08-20 16:07:16 -07:00