Commit Graph

743 Commits

Author SHA1 Message Date
ASP.NET CI e681b344a6 Update dependencies.props
[auto-updated: dependencies]
2018-09-02 19:10:08 +00:00
Ryan Nowak bf31749e9f
Merge pull request #475 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-08-30 17:06:50 -07:00
Ryan Nowak 525fbf495b Fix #468 - all UseHealthChecks without a path 2018-08-30 15:33:49 -07:00
Ryan Nowak 0bb4e948f7
Merge pull request #473 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-08-30 12:47:29 -07:00
Ryan Nowak 0001581ffc
Merge branch 'master' into merge/release/2.2-to-master 2018-08-30 11:25:57 -07:00
Ryan Nowak 3e4a3d0b90
Allow health checks to use any DI lifetime (#466)
* Allow health checks to use any DI lifetime

This change allows registered IHealthCheck implementations to use any DI
lifetime. This is necessary for scenarios like using EF which requires a
scope.

The works by having the health check service create a scope for each
time it queries health checks. This scope does not overlap or share
state with other scopes (the request scope) so there is no crosstalk
between processing going on per-request in ASP.NET Core and the health
check operation.

* PR feedback and some logging cleanup
2018-08-30 10:51:48 -07:00
Pranav K db40c80cea
Merge remote-tracking branch 'origin/release/2.2'
# Conflicts:
#	version.props
2018-08-29 10:13:33 -07:00
Zhiliang 6cd4cf1a7a Fix typos in samples 2018-08-29 10:12:10 -07:00
martincostello fc7fa4f0f0 Fix sample typo
Fix typo in sample comment.
2018-08-28 15:41:18 -07:00
ASP.NET CI 241208dee0 Update dependencies.props
[auto-updated: dependencies]
2018-08-26 19:10:15 +00:00
ASP.NET CI 5c8b549882 Update package branding for 2.2.0-preview2 2018-08-21 13:33:49 -07:00
ASP.NET CI 4762c651d5 Update dependencies.props
[auto-updated: dependencies]
2018-08-19 19:10:55 +00:00
Ryan Nowak 4f908628bf
Merge pull request #462 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-08-13 13:07:46 -07:00
Ryan Nowak 3d208181b9
Merge branch 'master' into merge/release/2.2-to-master 2018-08-13 11:13:54 -07:00
ASP.NET CI 3c5e8fb78e Update dependencies.props
[auto-updated: dependencies]
2018-08-12 19:56:32 +00:00
ASP.NET CI 983d7836ab Update dependencies.props
[auto-updated: dependencies]
2018-08-12 19:10:01 +00:00
Arthur Vickers 6b09fa4e86
Merge pull request #431 from andrewjsaid/dev
Show correct missing key name in NoContextType error message
2018-08-08 10:28:15 -07:00
Ryan Nowak 8ec69456ca
Update CustomWriterStartup.cs
Fix a misleading comment in sample
2018-08-06 16:44:54 -07:00
ASP.NET CI 602faf5baa Update dependencies.props
[auto-updated: dependencies]
2018-08-06 20:33:14 +00:00
ASP.NET CI f9f204054c Update dependencies.props
[auto-updated: dependencies]
2018-08-05 19:49:23 +00:00
ASP.NET CI 701fe39170 Update dependencies.props
[auto-updated: dependencies]
2018-08-05 19:10:57 +00:00
Ryan Nowak a15974e841
Merge pull request #461 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-08-03 17:03:00 -07:00
Ryan Nowak f3089abf81
Merge branch 'master' into merge/release/2.2-to-master 2018-08-03 16:05:42 -07:00
Ryan Nowak d1cba1f55b Add Database health sample 2018-08-03 15:10:03 -07:00
Ryan Nowak dcac4b561c Merge branch 'release/2.2' 2018-08-03 14:57:41 -07:00
Ryan Nowak 2c792ce116 Add filtering by port
This adds UseHealthChecks overloads that configure the health checks
middleware to listen on a preconfigured port.

This is sugar for MapWhen, but it's important because a significant set
of users will want to use Health Checks in this way.
2018-08-03 14:56:13 -07:00
Ryan Nowak ebafbcdae3 Add filtering by port
This adds UseHealthChecks overloads that configure the health checks
middleware to listen on a preconfigured port.

This is sugar for MapWhen, but it's important because a significant set
of users will want to use Health Checks in this way.
2018-08-03 14:37:27 -07:00
Ryan Nowak 0973a723fe
Merge pull request #458 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-08-03 10:24:44 -07:00
Ryan Nowak a59765c472
Merge pull request #456 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-08-03 09:41:00 -07:00
Ryan Nowak 4549b84cb5
Remove JSON output (#457)
* Remove JSON output and convert to sample

GlennC and I made the decisison to turn the JSON output into a sample
rather than something we support out of the box. We wouldn't tell
customers to definitely use it and we don't want to introduce more
coupling to JSON.NET.
2018-08-03 09:40:45 -07:00
Ryan Nowak 9778083a21
Merge branch 'master' into merge/release/2.2-to-master 2018-08-01 20:46:53 -07:00
Ryan Nowak 64124e9c85 Add filtering to Health Checks middleware
This allows each middleware to be configured with a specific set of
checks (by name). See the comments in the sample for how this is
frequently used.

This is also addresses aspnet/Home#2575 - or at least the part that we
plan to do. We think that any sort of built-in system of metadata or
tags is vast overkill, and doesn't really align with the primary usage
of health checks.

We're providing building blocks, and these can be put together to
build more complicated things like what's described in aspnet/Home#2575.
2018-08-01 19:07:58 -07:00
Ryan Nowak 47f427d5ac Updating Health Checks for 2.2
A bunch of small changes and updates for 2.2 focused at making our main
scenarios more streamlined and focused. Also adds samples for
extensibility we support so far.

A list of changes:

Clearing baselines for these projects. We didn't ship anything in 2.1 so
there should be nothing in the baselines.

--

The middleware now uses Map for path matching. This makes the actual
`HealthCheckMiddleware` more standalone. This will make it easy to use
with Dispatcher/Endpoint Routing in the future.

This also manifests by removing Path from HealthCheckOptions - the path
is an explicit argument to the UseHealthChecks middelware - this
streamlines the design for 3.0.

--

Added extensibility for customizing the status codes (aspnet/Home#2584)

--

Added extensibility for writing the textual output (aspnet/Home#2583)

--

Changed the default output to be `text/plain`. The most common use cases
for health checks don't include a detailed status.

The existing output format is still available as an option.
2018-08-01 18:49:44 -07:00
Ryan Nowak 88737a0050
Merge pull request #453 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-07-31 21:32:23 -07:00
Ryan Nowak 971ad15858
Merge branch 'master' into merge/release/2.2-to-master 2018-07-31 14:37:07 -07:00
Ryan Nowak bf839dadf1 Delete ISSUE_TEMPLATE.md
We're going to be doing some work in this repo. This issue tracker is the place to file Health Checks issues.
2018-07-31 12:51:47 -07:00
ASP.NET CI 6c4acd6e5f Update dependencies.props
[auto-updated: dependencies]
2018-07-29 19:52:41 +00:00
ASP.NET CI 1ace256ad0 Update dependencies.props
[auto-updated: dependencies]
2018-07-29 12:09:28 -07:00
Nate McMaster 1f1673de38
Merge branch 'release/2.2' 2018-07-24 13:10:17 -07:00
Nate McMaster 008e13a4e7
Merge branch 'release/2.1' into release/2.2 2018-07-24 12:06:53 -07:00
Eilon Lipton 2964f4c3e4
Update CONTRIBUTING.md 2018-07-24 10:48:25 -07:00
ASP.NET CI 8583f6824f Update dependencies.props
[auto-updated: dependencies]
2018-07-22 12:54:30 -07:00
ASP.NET CI 4591b4172d Update dependencies.props
[auto-updated: dependencies]
2018-07-22 12:09:40 -07:00
Andrew J Said af89bb661a Clarify error message as request in pull request review 2018-07-18 12:24:22 +01:00
ASP.NET CI fd822b01e9 Update dependencies.props
[auto-updated: dependencies]
2018-07-15 19:53:41 +00:00
ASP.NET CI d26d6ddfb1 Update dependencies.props
[auto-updated: dependencies]
2018-07-15 12:10:02 -07:00
Nate McMaster 8893337fb0
Pin version variables to the ASP.NET Core 2.1.2 baseline
This reverts our previous policy of cascading versions on all servicing updates.
This moves variables into the 'pinned' section, and points them to the latest
stable release (versions that were used at the time of the 2.1.2 release).
2018-07-12 11:52:12 -07:00
Nate McMaster 286304e2f9
Updating dependencies to 2.1.2 and adding a section for pinned variable versions 2018-07-11 18:48:13 -07:00
Nate McMaster 6a3f878af2
Reverting version from 2.1.2 back to 2.1.1
As a result of changing the way we apply servicing updates to aspnet core, this repo did not need the version bump because there are no planned product changes in this repo.
2018-07-11 15:06:28 -07:00
ASP.NET CI 17d69d94e3 Update dependencies.props
[auto-updated: dependencies]
2018-07-08 19:50:21 +00:00