Nate McMaster
206db0558e
Update buildtools and add properties to skip IIS tests
2018-12-13 23:36:42 -08:00
Nate McMaster
f0990ec531
Fix build issues with IIS integration projects
...
Changes:
* Ensure IIS managed and pkg projects build after the native projects
* Update projects to build test
* Update CI checks to build on macOS and Linux
* Use package baselines to manage ANCM packages
2018-12-13 22:53:31 -08:00
Nate McMaster
4998ad8622
Merge branch 'merge/release/2.1-to-release/2.2' into release/2.2 ( #4619 )
2018-12-13 22:24:21 -08:00
Justin Kotalik
6adfa32402
Merge branch 'release/2.1' into release/2.2
2018-12-13 22:12:19 -08:00
BrennanConroy
74dbb4ff4f
Register callback before start ( #4581 )
2018-12-13 21:30:48 -08:00
BrennanConroy
4950495dc4
Fix IE 11 handshake split ( #4575 )
2018-12-13 21:30:17 -08:00
Ajay Bhargav Baaskaran
59ada30959
Merge branch 'ajbaaska/merge-22-to-master'
2018-12-13 17:34:41 -08:00
Mikael Mengistu
42afc62acf
Update src/Middleware/CORS/test/FunctionalTests/CorsMiddlewareFunctionalTest.cs
...
Co-Authored-By: ajaybhargavb <ajaybhargavb@gmail.com>
2018-12-13 16:51:00 -08:00
Nate McMaster
538af1091c
Update src/Middleware/CORS/test/FunctionalTests/CorsMiddlewareFunctionalTest.cs
...
Co-Authored-By: ajaybhargavb <ajaybhargavb@gmail.com>
2018-12-13 16:39:37 -08:00
Nate McMaster
6e3e48d456
Update src/Middleware/CORS/test/FunctionalTests/CorsMiddlewareFunctionalTest.cs
...
Co-Authored-By: ajaybhargavb <ajaybhargavb@gmail.com>
2018-12-13 16:39:27 -08:00
Ben Adams
b2731d652d
.IndexOf(...) >= 0 to .Contains(...) ( #4688 )
2018-12-14 12:40:09 +13:00
dotnet-bot
e1d8a986c1
Merge in 'release/2.1' changes
2018-12-13 22:36:04 +00:00
Nate McMaster
96ea326664
Document custom reference resolution ( #4806 )
2018-12-13 14:35:02 -08:00
Cédric Luthi
4a9a96cef7
Make the ResultStatusCodes property null-resettable
2018-12-13 14:09:21 -08:00
Cédric Luthi
74d900ea56
Add setter to HealthCheckOptions.ResultStatusCodes
...
All other properties (`Predicate`, `ResponseWriter` and `AllowCachingResponses`) have a setter but `ResultStatusCodes` doesn't.
Without a setter, reusing the same status to http status code mapping is impossible and leads to duplicate code that looks like this:
```csharp
private static void ConfigureHealthChecks(IApplicationBuilder app, HealthCheckServiceOptions options)
{
app.UseHealthChecks("/health", new HealthCheckOptions
{
ResultStatusCodes =
{
[HealthStatus.Healthy] = StatusCodes.Status200OK,
[HealthStatus.Degraded] = StatusCodes.Status400BadRequest,
[HealthStatus.Unhealthy] = StatusCodes.Status503ServiceUnavailable
}
});
foreach (var name in options.Registrations.Select(e => e.Name))
{
app.UseHealthChecks($"/health/{name}", new HealthCheckOptions
{
Predicate = registration => registration.Name == name,
ResultStatusCodes =
{
[HealthStatus.Healthy] = StatusCodes.Status200OK,
[HealthStatus.Degraded] = StatusCodes.Status400BadRequest,
[HealthStatus.Unhealthy] = StatusCodes.Status503ServiceUnavailable
}
});
}
}
```
With a setter, this code could be rewritten in a *don't repeat yourself* (DRY) way:
```csharp
private static void ConfigureHealthChecks(IApplicationBuilder app, HealthCheckServiceOptions options)
{
var resultStatusCodes = new Dictionary<HealthStatus, int>
{
[HealthStatus.Healthy] = StatusCodes.Status200OK,
[HealthStatus.Degraded] = StatusCodes.Status400BadRequest,
[HealthStatus.Unhealthy] = StatusCodes.Status503ServiceUnavailable
};
app.UseHealthChecks("/health", new HealthCheckOptions
{
ResultStatusCodes = resultStatusCodes
});
foreach (var name in options.Registrations.Select(e => e.Name))
{
app.UseHealthChecks($"/health/{name}", new HealthCheckOptions
{
Predicate = registration => registration.Name == name,
ResultStatusCodes = resultStatusCodes
});
}
}
```
2018-12-13 14:09:21 -08:00
James Newton-King
35d8ee6cdf
Require nodejs 10 and update build docs ( #4805 )
2018-12-14 10:58:03 +13:00
Ajay Bhargav Baaskaran
0ecc6bc0b5
Merge branch 'release/2.2' into ajbaaska/merge-22-to-master
2018-12-13 12:06:48 -08:00
Nate McMaster
4fcd97e4d2
Remove Microsoft.Extensions.WebEncoders.Sources
...
\n\nCommit migrated from e7bb41b9bf
2018-12-13 11:41:24 -08:00
dotnet-bot
345fee0149
Merge in 'release/2.1' changes
2018-12-13 19:40:20 +00:00
Nate McMaster
cb018faf53
Remove Microsoft.Extensions.StackTrace.Sources
...
\n\nCommit migrated from 1713ada32d
2018-12-13 11:39:54 -08:00
John Luo
a026e7a4e7
Convert MetaPackages to Reference and move to DefauldBuilder folder ( #4687 )
...
* Convert ServerTests to Reference and move to Server folder
* Fix NU1105
2018-12-13 11:39:15 -08:00
Nate McMaster
01a4a273d7
Remove Microsoft.Extensions.SecurityHelper.Sources
...
\n\nCommit migrated from c41abe44af
2018-12-13 11:26:34 -08:00
Nate McMaster
e0051303d1
Remove Microsoft.Extensions.RazorViews.Sources
...
\n\nCommit migrated from 3f5df6ddbc
2018-12-13 11:19:00 -08:00
Nate McMaster
921060b2ca
Remove Microsoft.Extensions.PropertyActivator.Sources and Microsoft.Extensions.PropertyHelper.Sources
...
\n\nCommit migrated from 6c11818fe9
2018-12-13 11:15:55 -08:00
Nate McMaster
bbf0ebdd91
Remove Microsoft.Extensions.ObjectMethodExecutor.Sources
...
\n\nCommit migrated from 71a672e287
2018-12-13 11:04:12 -08:00
Nate McMaster
2f36a1ecf9
Remove Microsoft.Extensions.ClosedGenericMatcher.Sources
...
This code isn't used locally, so it will move to aspnet/AspNetCore
\n\nCommit migrated from 7305817fea
2018-12-13 11:01:34 -08:00
Nate McMaster
e8d84a1962
Remove Microsoft.Extensions.CopyOnWriteDictionary.Sources
...
This code will move to aspnet/AspNetCore
\n\nCommit migrated from 468940be7f
2018-12-13 10:43:02 -08:00
Nate McMaster
2d001bb583
Stop producing Microsoft.AspNetCore.Certificates.Generation.Sources
...
This was only used in the aspnet/AspNetCore repo. so the source for this project is moving to that repo
\n\nCommit migrated from 9290dc1dbc
2018-12-13 10:37:41 -08:00
Nate McMaster
a053c7e1a4
Stop producing Microsoft.Extensions.Process.Sources
...
This was only used in the aspnet/AspNetCore repo. so the source for this project is moving to that repo
\n\nCommit migrated from 98522c18fb
2018-12-13 10:33:33 -08:00
Nate McMaster
317b4bb4eb
Create README.md for the localization folder ( dotnet/extensions#683 )
...
\n\nCommit migrated from c841b4f9e0
2018-12-13 09:49:07 -08:00
Kahbazi
a8ae16e0cb
Change JwtBearerOptions.Audience comment ( #4646 )
2018-12-13 11:08:12 +03:30
John Luo
6d2f2483d2
Remove obsolete session apis ( #4609 )
...
* Remove obsolete session apis
* Add breaking changes json updates
2018-12-12 17:35:40 -08:00
dotnet-bot
f5b36aa8f2
Merge in 'release/2.1' changes
2018-12-13 01:15:45 +00:00
Chris Ross
a3c99028b2
Fix HttpSys Caching_SendFileWithFullContentLength_Cached test ( #4630 )
2018-12-12 17:14:46 -08:00
dotnet-bot
f1bfecfa03
Merge in 'release/2.2' changes
2018-12-12 22:37:18 +00:00
Mikael Mengistu
9e76bec6e1
Fix CORS Functional Tests ( #4610 )
2018-12-12 14:36:14 -08:00
dotnet-bot
e8c63f6cf9
Merge in 'release/2.1' changes
2018-12-12 22:00:56 +00:00
Justin Kotalik
429719b91d
Make IISIntegration use Reference instead of PackageReference (and reactionary work) ( #4311 )
2018-12-12 16:59:44 -05:00
dotnet-bot
1d0254977e
Merge in 'release/2.2' changes
2018-12-12 21:52:26 +00:00
Chris Ross
49d5525352
Change Hosting projects to target netcoreapp3.0 #3754 ( #4611 )
2018-12-12 13:34:57 -08:00
James Newton-King
ac1b5c58b0
Fix NU1105 errors in HttpAbstractions.sln ( #4608 )
2018-12-13 10:15:01 +13:00
Ajay Bhargav Baaskaran
5e6c2208fd
Merge branch 'release/2.1' into release/2.2
2018-12-12 13:14:20 -08:00
dotnet-bot
6de24d6d2c
Merge in 'release/2.2' changes
2018-12-12 21:00:13 +00:00
Ajay Bhargav Baaskaran
ad3835c3e2
Removed unnecessary projects ( #4586 ) ( #4612 )
2018-12-12 12:59:04 -08:00
dotnet-bot
4fc47bd43e
Merge in 'release/2.1' changes
2018-12-12 20:58:19 +00:00
Justin Kotalik
74753428e9
Add Vs install script ( #4607 )
2018-12-12 15:57:00 -05:00
Chris Ross
a08f4b5a83
ResponseCompression DisposeAsync BasicMiddleware/#247 ( #4604 )
2018-12-12 11:32:36 -08:00
dotnet-bot
3a21d78ce6
Merge in 'release/2.1' changes
2018-12-12 18:42:13 +00:00
Ajay Bhargav Baaskaran
98f2973880
Removed unnecessary projects ( #4586 )
2018-12-12 10:41:06 -08:00
Pavel Krymets
1f0827195c
Merge branch 'release/2.2'
2018-12-12 10:40:41 -08:00