Commit Graph

712 Commits

Author SHA1 Message Date
ASP.NET CI b3e163e44f
Update branding to 2.2.0-preview3 2018-09-05 16:34:00 -07:00
ASP.NET CI dd07e6743c Update dependencies.props
[auto-updated: dependencies]
2018-09-02 12:09:26 -07:00
Ryan Nowak 525fbf495b Fix #468 - all UseHealthChecks without a path 2018-08-30 15:33:49 -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
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 5c8b549882 Update package branding for 2.2.0-preview2 2018-08-21 13:33:49 -07:00
ASP.NET CI 983d7836ab Update dependencies.props
[auto-updated: dependencies]
2018-08-12 19:10:01 +00: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 701fe39170 Update dependencies.props
[auto-updated: dependencies]
2018-08-05 19:10:57 +00:00
Ryan Nowak d1cba1f55b Add Database health sample 2018-08-03 15:10:03 -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 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 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 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 1ace256ad0 Update dependencies.props
[auto-updated: dependencies]
2018-07-29 12:09:28 -07:00
Nate McMaster 008e13a4e7
Merge branch 'release/2.1' into release/2.2 2018-07-24 12:06:53 -07:00
ASP.NET CI 4591b4172d Update dependencies.props
[auto-updated: dependencies]
2018-07-22 12:09:40 -07: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 a5ba2590d5 Update dependencies.props
[auto-updated: dependencies]
2018-07-08 12:10:06 -07:00
Nate McMaster 2f8eaa5ea4
Update infrastructure for the 2.2 release 2018-06-28 16:19:26 -07:00
ASP.NET CI 7f463b2793 Update dependencies.props
[auto-updated: dependencies]
2018-06-25 11:11:22 -07:00
Ryan Brandenburg c5eda241ea Adding VSTS file 2018-06-19 11:09:20 -07:00
Ryan Brandenburg 191d2651fc Set 2.1 baselines 2018-06-14 10:02:33 -07:00
Ryan Brandenburg d1b1a8097b Set 2.1 baselines 2018-06-14 10:02:28 -07:00
Nate McMaster ab45862391
Bumping version from 2.1.1 to 2.1.2 2018-06-12 14:01:30 -07:00
ASP.NET CI dedefd7043 Update dependencies.props
[auto-updated: dependencies]
2018-06-12 19:15:53 +00:00
ASP.NET CI db3e237144 Update dependencies.props
[auto-updated: dependencies]
2018-06-07 19:31:22 +00:00
Nate McMaster 3296a4f040
Add certificate names for code signing 2018-06-05 22:31:17 -07:00
ASP.NET CI d8ecc6c967 Update dependencies.props
[auto-updated: dependencies]
2018-06-03 19:10:34 +00:00
Nate McMaster 977f85f9cc
Bumping version from 2.1.0 to 2.1.1 2018-05-30 09:49:59 -07:00
ASP.NET CI d16a3a2164 Update dependencies.props
[auto-updated: dependencies]
2018-05-29 09:34:14 -07:00
ASP.NET CI 2f297de232 Update dependencies.props
[auto-updated: dependencies]
2018-05-27 19:10:46 +00:00
Nate McMaster (automated) d763d96940
Update bootstrapper scripts (automated commit) [ci skip] 2018-05-25 16:13:45 -07:00
ASP.NET CI 5f7102a469 Update dependencies.props
[auto-updated: dependencies]
2018-05-20 19:27:54 +00:00
ASP.NET CI 8dce01f654 Update dependencies.props
[auto-updated: dependencies]
2018-05-13 14:04:40 -07:00
Ryan Brandenburg 519ca4adb0 Upgrade to netcoreapp22 2018-05-07 16:07:07 -07:00
ASP.NET CI c997fa8365 Update dependencies.props
[auto-updated: dependencies]
2018-05-06 12:11:26 -07:00
ASP.NET CI 98785fb2f5 Update dependencies.props
[auto-updated: dependencies]
2018-05-04 07:31:03 -07:00
Nate McMaster 5f7cfe8303
Merge branch 'release/2.1' into dev 2018-04-30 15:51:58 -07:00
Nate McMaster (automated) e0771a1257
Bump version to 2.1.0-rtm 2018-04-30 14:51:39 -07:00
ASP.NET CI 9cc72f7af1 Update dependencies.props
[auto-updated: dependencies]
2018-04-29 12:12:16 -07:00
ASP.NET CI 7b1517f5d0 Update dependencies.props
[auto-updated: dependencies]
2018-04-23 12:04:33 -07:00
Nate McMaster c4d96a4cf5
Merge branch release/2.1 into dev 2018-04-20 15:07:33 -07:00
ASP.NET CI f572bbc2e8 Update dependencies.props
[auto-updated: dependencies]
2018-04-19 22:17:55 -07:00