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
Pavel Krymets
a0a95ad1ea
Merge branch 'release/2.2'
2018-12-12 10:40:41 -08:00
Pavel Krymets
856efaf4c2
Merge branch 'release/2.2'
...
\n\nCommit migrated from 537bda8727
2018-12-12 10:40:41 -08:00
Justin Kotalik
226f2c0c2c
Adds MinimumReadThreshold to StreamPipeReader. ( #4372 )
2018-12-12 13:09:15 -05:00
Chris Ross
12966c63a6
Change DataProtection projects to target netcoreapp3.0 #3754 ( #4473 )
2018-12-12 10:04:36 -08:00
Pavel Krymets
38a1bf6285
Merge branch 'merge/release/2.1-to-release/2.2' of github.com:dotnet-maestro-bot/Common into merge/release/2.1-to-release/2.2
2018-12-12 09:27:33 -08:00
Pavel Krymets
e952668572
Merge branch 'merge/release/2.1-to-release/2.2' of github.com:dotnet-maestro-bot/Common into merge/release/2.1-to-release/2.2
2018-12-12 09:27:33 -08:00
Pavel Krymets
be90f6d4d2
Merge branch 'merge/release/2.1-to-release/2.2' of github.com:dotnet-maestro-bot/Common into merge/release/2.1-to-release/2.2
...
\n\nCommit migrated from df6cb6e898
2018-12-12 09:27:33 -08:00
Chris Ross
6d442c1e3d
Upgrade Kestrel to target netcoreapp3.0 #3754 ( #4405 )
2018-12-12 08:16:00 -08:00
Ajay Bhargav Baaskaran
9105653629
Completely moved tag grouping logic to the parser ( dotnet/aspnetcore-tooling#28 )
...
* Completely moved tag grouping logic to the parser
- Removed MarkupElementRewriter
- Removed legacy Html parser
\n\nCommit migrated from c98b2fe1be
2018-12-11 18:24:39 -08:00
Nate McMaster
87629bbad9
Update Middleware.sln and Kestrel.sln to workaround NU1105 error
2018-12-11 18:19:36 -08:00