Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
734 commits
Select commit Hold shift + click to select a range
1a0d4a5
Update sample usage of EF tools
Sep 26, 2016
d376a1f
Updating partner package versions
pranavkm Sep 28, 2016
65025d4
Updating to netcoreapp1.1
pranavkm Oct 12, 2016
9cecbc2
Revert "Updating to netcoreapp1.1"
pranavkm Oct 12, 2016
a3e7481
Updating to netcoreapp1.1
pranavkm Oct 13, 2016
498246f
Branching for 1.1.0-preview1
pranavkm Oct 17, 2016
05227f0
Merge remote-tracking branch 'origin/rel/1.1.0-preview1' into dev
pranavkm Oct 17, 2016
398222d
Show full generated output option for Razor compilation errors
pranavkm Oct 26, 2016
4b66b87
Created public API baselines
javiercn Nov 4, 2016
3a319f4
Branching for 1.1.0
pranavkm Nov 9, 2016
a3af7bb
Merge branch 'rel/1.1.0' into dev
pranavkm Nov 9, 2016
f4f1902
Updating versions to 1.2.0-*
pranavkm Nov 9, 2016
32cced7
Update dependency versions
pranavkm Nov 10, 2016
006ed20
Clean tmp folder after unzipping KoreBuild
Nov 18, 2016
ea27a4e
Pin global.json SDK to 1.0.0-preview2-1-003177.
Nov 24, 2016
7cc4caa
Update .travis.yml osx image to xcode7.3.
Dec 8, 2016
e0c96f6
Removed packages list in NuGetPackageVerifier.json
ajaybhargavb Dec 12, 2016
4b77edf
Updating to 4.4 CoreFx packages
pranavkm Dec 5, 2016
215e41f
Remove Microsoft.AspNetCore.DiagnosticsViewPage.Sources package
natemcmaster Jan 9, 2017
f35a3b4
Remove obsolete calls to AddEntityFramework
ajcvickers Jan 26, 2017
fb7c25b
Added OriginalQueryString property to IStatusCodeReExecuteFeature int…
kichalla Jan 4, 2017
4c5739c
Upgrade to VS 2017
natemcmaster Jan 31, 2017
01d2c10
Downgrade to stable packages
Feb 15, 2017
c354afe
Bump test projects up to .NET 4.5.2
dougbu Feb 15, 2017
02dc95e
React to aspnet/Korebuild#160
Feb 16, 2017
3a8b8c8
Update in-memory tests to used named database.
ajcvickers Mar 1, 2017
c532c33
Change korebuild branch and fix argument forwarding in bootstrapper
Mar 2, 2017
4916ff7
Update AppVeyor and Travis settings
Mar 2, 2017
9ae3938
Update .travis.yml
davidfowl Mar 9, 2017
9fac9c8
Merge pull request #351 from aspnet/no-mono
davidfowl Mar 10, 2017
36195d7
Update appveyor and travis settings
Mar 14, 2017
e8db0cb
Unify dependency versions to one file and remove workarounds
Mar 15, 2017
ddb5de0
Update Travis to macOS Sierra
Mar 21, 2017
237abd0
Change compilation targets.
pranavkm Mar 12, 2017
e3e4176
Try renaming functional tests as a potential mitigation for long path…
Mar 23, 2017
6f2a070
Converted samples and test projects to run on netcoreapp2.0
kichalla Mar 23, 2017
6ac219c
updated
kichalla Mar 23, 2017
7fa3bab
Updating to 2.0.0 Internal.AspNetCore.Sdk
pranavkm Mar 29, 2017
52a388e
Updating versions to 2.0.0-preview1
pranavkm Apr 4, 2017
ee1cfdf
[Fixes #] DeveloperExceptionPage throws when SourceFileContent is nul…
kichalla Mar 9, 2017
775847a
Disable SqlServer specific tests on netcoreapp2.0 on win7/2008
smitpatel Apr 16, 2017
e450dd7
Deleted obsolete razor views and models
kichalla Apr 17, 2017
e3180ba
Re-enable Entity Framework tests
bricelam Apr 19, 2017
9daa610
Make DataStoreErrorLogger._log static
ryanbrandenburg Apr 21, 2017
fb12815
Remove System.Reflection.Metadata
pranavkm Apr 21, 2017
8c24094
Update API Check related files
smitpatel Apr 25, 2017
0786f18
Use Bundled NETStandard.Library \ NETCoreApp versions instead of expl…
pranavkm Apr 25, 2017
c73bd7e
Increase timeout in EF tests
AndriySvyryd Apr 25, 2017
9680560
Branching for 2.0.0-preview1
pranavkm Apr 26, 2017
8510397
Merge branch 'rel/2.0.0-preview1' into dev
pranavkm Apr 26, 2017
060fcca
Updating package version to preview2
pranavkm Apr 26, 2017
9791074
Treat all SQL exceptions the same in DatabaseErrorPageMiddlewareTest
AndriySvyryd Apr 26, 2017
e147b33
Merge remote-tracking branch 'origin/rel/2.0.0-preview1' into dev
AndriySvyryd Apr 27, 2017
04dbf42
React to Logging API changes
BrennanConroy Apr 27, 2017
ed4d3d9
Merge branch 'rel/2.0.0-preview1' into dev
BrennanConroy Apr 27, 2017
d39aa56
Use the bundled NETStandard.Library package in netstandard targeting …
pranavkm May 1, 2017
f92543d
Merge remote-tracking branch 'origin/rel/2.0.0-preview1' into dev
pranavkm May 2, 2017
1018f41
Missed some obsolete logging calls
BrennanConroy Apr 28, 2017
190f2d3
Merge branch 'rel/2.0.0-preview1' into dev
BrennanConroy May 2, 2017
30306fc
Change TFM to netcoreapp2.0
pranavkm May 4, 2017
cce449d
Merge pull request #376 from aspnet/rel/2.0.0-preview1
pranavkm May 5, 2017
8b41149
Migration
JunTaoLuo May 6, 2017
3e05cc5
Merge branch 'rel/2.0.0-preview1' into dev
JunTaoLuo May 6, 2017
eedcca1
Remove unnecessary package references (#378)
pakrym May 10, 2017
7199e8d
Upgrade test framework versions and fix test issues
May 15, 2017
44610a4
Update database error page to react to EF logging changes.
ajcvickers May 15, 2017
09468da
Revert "Disable SqlServer specific tests on netcoreapp2.0 on win7/2008"
smitpatel May 15, 2017
ec2faf5
Target netstandard2.0
pranavkm May 23, 2017
8e618cb
React to EF namespace change.
ajcvickers May 24, 2017
bd921bf
Updated to use the latest shared runtime
kichalla May 26, 2017
1b6993f
Database Error Page: Prep for removal of ILogger-based interception.
anpete May 30, 2017
2258eea
Database Error Page: Remove ILogger-based interception.
anpete May 30, 2017
435c79e
Branching for rel/2.0.0-preview2
pranavkm Jun 1, 2017
536e40f
Merge remote-tracking branch 'origin/rel/2.0.0-preview2' into dev
pranavkm Jun 1, 2017
fa469ed
Updating build scripts to point to 2.0.0-preview2 KoreBuild
pranavkm Jun 1, 2017
1b5355d
Merge remote-tracking branch 'origin/rel/2.0.0-preview2' into dev
pranavkm Jun 1, 2017
4b5d690
React to EF change
ajcvickers Jun 1, 2017
3b671b4
Merge remote-tracking branch 'origin/rel/2.0.0-preview2' into dev
ajcvickers Jun 1, 2017
e35f8d1
Updating versions to preview3
pranavkm Jun 1, 2017
fc1dbbb
Adds a missing ToList() in assert code.
anpete Jun 1, 2017
a66b5c6
Merge branch 'rel/2.0.0-preview2' into dev
anpete Jun 1, 2017
a754e91
Update sample test app to netstandard2.0
Jun 7, 2017
4e044a1
Remove usage of TaskCache
pranavkm Jun 8, 2017
89e96e8
Fixed version of netstandard.library
kichalla Jun 15, 2017
ab8cb5e
Preapre for StackTrace.Sources changes
pranavkm Jun 22, 2017
d916d3f
Remove NetStandaRD.Library.NetFramework
ryanbrandenburg Jun 22, 2017
f59f405
Merge pull request #387 from aspnet/rybrande/NetStandardLibNetFramework
ryanbrandenburg Jun 23, 2017
fcc126c
Remove custom apt source (#388)
mikeharder Jun 26, 2017
abb2cb7
Add NETStandardImplicitPackageVersion
pranavkm Jun 29, 2017
e9fa810
Update LICENSE.txt text
pranavkm Jul 3, 2017
8154495
DiagnosticSource to 4.4.1
ryanbrandenburg Jul 3, 2017
31e4dd6
React to aspnet/BuildTools#293
Jul 6, 2017
447575b
Set "TreatWarningsAsErrors" before NuGet restore
ryanbrandenburg Jul 6, 2017
62aaac1
Update version suffix for 2.0.0 RTM release
pranavkm Jul 6, 2017
ee2487c
Remove NETSTandard.Library.NETFramework
ryanbrandenburg Jul 6, 2017
9cd59b9
Branching for 2.0.0 rtm
pranavkm Jul 10, 2017
240cbf6
Merge branch 'rel/2.0.0' into dev
pranavkm Jul 10, 2017
33982b3
Updating KoreBuild branch
pranavkm Jul 10, 2017
c2b58cb
Merge branch 'rel/2.0.0' into dev
pranavkm Jul 10, 2017
999a9d9
Skip first time experience on Appveyor
ryanbrandenburg Jul 7, 2017
f1562a7
Enable AppVeyor for rel branches (#397)
mikeharder Jul 19, 2017
7070727
Remove NetStandardLibraryImplicitPackageVersion (#396)
mikeharder Jul 19, 2017
074efe3
2.0.0-rtm to 2.1.0-preview1
ryanbrandenburg Jul 21, 2017
bae305e
Set AspNetCoreVersion
ryanbrandenburg Jul 25, 2017
43df0f4
Updating to InternalAspNetCoreSdkVersion 2.1.1-*
pranavkm Jul 25, 2017
c2a9b95
Update bootstrappers to use the compiled version of KoreBuild
Jul 25, 2017
e48c3bc
Fix syntax warning when running build.sh on older versions of bash
Jul 26, 2017
23948c5
Update VersionPrefix
ryanbrandenburg Jul 26, 2017
3b6520e
Update __get_remote_file logic
JunTaoLuo Aug 2, 2017
a1d26be
Ensure fallback to curl after failed wget
JunTaoLuo Aug 2, 2017
adf3cb7
Upgrade to xunit 2.3.0-beta4
Aug 22, 2017
9634f7f
Use Directory.Build.props/targets
Aug 29, 2017
479eb49
Use PackageLineup to manage PackageReference versions
Aug 29, 2017
d22bb2c
Add logger extensions with event ids (#405)
jbagga Sep 15, 2017
c21300d
Increase Minimum Version of Visual Studio to 15.3.0
jkotalik Sep 22, 2017
d390c36
Update bootstrappers
ryanbrandenburg Sep 20, 2017
a89d01b
Add RepositoryRoot
ryanbrandenburg Oct 16, 2017
a30befa
Add abstractions for Health Checks and a simple middleware and servic…
analogrelay Oct 18, 2017
88db534
UseExceptionHandler throws if ExceptionHandlingPath not set (#417)
jbagga Oct 27, 2017
7ac0e06
Pin tool and package versions to make builds more repeatable
Nov 1, 2017
bb34616
Test: fix status code order
Tratcher Nov 9, 2017
3b4aaa5
Target netcoreapp2.1 in tests and samples
pranavkm Nov 11, 2017
f731ceb
Use MicrosoftNETCoreApp21PackageVersion to determine the runtime fram…
pranavkm Nov 17, 2017
948c261
Use MSBuild to set NuGet feeds instead of NuGet.config
Nov 20, 2017
12f6396
Replace aspnetcore-ci-dev feed with aspnetcore-dev
pranavkm Nov 22, 2017
d228088
Specify runtime versions to install
pranavkm Nov 29, 2017
708e6e9
Update bootstrappers
ryanbrandenburg Dec 1, 2017
b7f2249
Update dependencies.props
aspnetci Dec 10, 2017
846c001
Update dependencies.props
aspnetci Dec 13, 2017
cdcd713
Remove StackTraceTest.cs
pranavkm Dec 16, 2017
7b57057
Update dependencies.props
aspnetci Dec 19, 2017
59a479d
Update dependencies.props
aspnetci Dec 31, 2017
b459b63
Create ISSUE_TEMPLATE.md
Eilon Jan 2, 2018
d563f7d
Update dependencies.props
aspnetci Jan 4, 2018
f90337c
Update dependencies.props
aspnetci Jan 6, 2018
c110d3f
Branching for 2.1.0-preview1
pranavkm Jan 23, 2018
7223215
Merge branch 'release/2.1' into dev
pranavkm Jan 23, 2018
2b3e05a
Updating version to preview2
pranavkm Jan 24, 2018
0ec3ded
Fixes null ref in DatabaseErrorPageMiddleware.
anpete Jan 26, 2018
93dbe36
Update dependencies.props to 2.1.0-preview-28193, build tools to 2.1.…
Jan 31, 2018
a113289
Update dependencies.props
aspnetci Feb 1, 2018
d44b78e
Skip flaky test
ryanbrandenburg Feb 2, 2018
2eef8fd
Add retries to help with test flakiness
ajcvickers Feb 2, 2018
6e387d7
Update dependencies.props
aspnetci Feb 3, 2018
e353005
Use correct ArgumentNullException parameter name (#436)
henkmollema Feb 5, 2018
5d2fc10
Update dependencies.props
aspnetci Feb 9, 2018
5631890
Update dependencies.props
aspnetci Feb 11, 2018
f1e63e0
Use ExperimentalPackageVersion
ryanbrandenburg Feb 15, 2018
00b0329
No more ExperimentalProjectVersionPrefix
ryanbrandenburg Feb 16, 2018
10ae077
Fix experimental projects
ryanbrandenburg Feb 16, 2018
1fe383b
Duplicate logic for Experimental
ryanbrandenburg Feb 16, 2018
f2726ed
Update dependencies.props
aspnetci Feb 18, 2018
05ad84f
Use FeatureBranchVersionSuffix when generating VersionSuffix
pranavkm Feb 22, 2018
8da9b82
Update dependencies.props
aspnetci Feb 26, 2018
ad1c9d7
Merge branch 'release/2.1' into dev
Mar 2, 2018
dfb0491
Use dotnet-core feed in repos
pranavkm Mar 6, 2018
4a098af
Prepend FeatureBranchVersionPrefix if FeatureBranchVersionSuffix is s…
pranavkm Mar 6, 2018
a18c2b6
Update dependencies.props
aspnetci Mar 8, 2018
de20d24
Branching for 2.1.0-preview2
pranavkm Mar 16, 2018
d6b86a6
Merge remote-tracking branch 'origin/release/2.1' into dev
pranavkm Mar 16, 2018
f99267a
Update version prefix to preview3
pranavkm Mar 16, 2018
d9cd271
Update KoreBuild channel
pranavkm Mar 16, 2018
1e7a4a2
Merge branch 'release/2.1' into dev
pranavkm Mar 16, 2018
424c0b0
Set 2.0 baselines
ryanbrandenburg Mar 14, 2018
7720041
Updated Razor views
ajaybhargavb Mar 23, 2018
caa3454
Update dependencies.props
aspnetci Mar 25, 2018
f0f2ff1
Merge branch 'release/2.1' into dev
ajaybhargavb Mar 26, 2018
db1bdc7
Upgraded dependencies
ajaybhargavb Mar 27, 2018
3b32a32
Merge branch 'release/2.1' into dev
ajaybhargavb Mar 27, 2018
4ef2bc2
Update dependencies.props
Mar 28, 2018
4694405
Update dependencies.props
aspnetci Apr 3, 2018
9734338
Ensure experimental package version is 0.4.0-preview3-final, not 0.4.…
Apr 6, 2018
74740db
Update dependencies.props
aspnetci Apr 15, 2018
3acf82e
Merge remote-tracking branch 'origin/release/2.1' into rybrande/Merge…
ryanbrandenburg Apr 16, 2018
89b2572
Branching for 2.1.0-rc1
ryanbrandenburg Apr 16, 2018
62d7ed6
Merge branch 'release/2.1' into dev
ryanbrandenburg Apr 16, 2018
afae173
Update version number to 2.2.0
ryanbrandenburg Apr 16, 2018
9355e78
Set NETStandardImplicitPackageVersion via dependencies.props
Apr 19, 2018
f572bbc
Update dependencies.props
aspnetci Apr 20, 2018
c4d96a4
Merge branch release/2.1 into dev
Apr 20, 2018
7b1517f
Update dependencies.props
aspnetci Apr 23, 2018
9cc72f7
Update dependencies.props
aspnetci Apr 29, 2018
e0771a1
Bump version to 2.1.0-rtm
Apr 30, 2018
5f7cfe8
Merge branch 'release/2.1' into dev
Apr 30, 2018
98785fb
Update dependencies.props
aspnetci May 4, 2018
c997fa8
Update dependencies.props
aspnetci May 6, 2018
519ca4a
Upgrade to netcoreapp22
ryanbrandenburg May 7, 2018
8dce01f
Update dependencies.props
aspnetci May 13, 2018
5f7102a
Update dependencies.props
aspnetci May 20, 2018
d763d96
Update bootstrapper scripts (automated commit) [ci skip]
May 25, 2018
2f297de
Update dependencies.props
aspnetci May 27, 2018
d16a3a2
Update dependencies.props
aspnetci May 29, 2018
977f85f
Bumping version from 2.1.0 to 2.1.1
May 30, 2018
d8ecc6c
Update dependencies.props
aspnetci Jun 3, 2018
3296a4f
Add certificate names for code signing
Jun 6, 2018
db3e237
Update dependencies.props
aspnetci Jun 7, 2018
dedefd7
Update dependencies.props
aspnetci Jun 12, 2018
ab45862
Bumping version from 2.1.1 to 2.1.2
May 30, 2018
d1b1a80
Set 2.1 baselines
ryanbrandenburg Jun 13, 2018
191d265
Set 2.1 baselines
ryanbrandenburg Jun 13, 2018
c5eda24
Adding VSTS file
ryanbrandenburg Jun 7, 2018
7f463b2
Update dependencies.props
aspnetci Jun 25, 2018
2f8eaa5
Update infrastructure for the 2.2 release
Jun 28, 2018
a5ba259
Update dependencies.props
aspnetci Jul 8, 2018
6a3f878
Reverting version from 2.1.2 back to 2.1.1
Jul 11, 2018
286304e
Updating dependencies to 2.1.2 and adding a section for pinned variab…
Jul 12, 2018
8893337
Pin version variables to the ASP.NET Core 2.1.2 baseline
Jul 12, 2018
d26d6dd
Update dependencies.props
aspnetci Jul 15, 2018
4591b41
Update dependencies.props
aspnetci Jul 22, 2018
008e13a
Merge branch 'release/2.1' into release/2.2
Jul 24, 2018
1ace256
Update dependencies.props
aspnetci Jul 29, 2018
bf839da
Delete ISSUE_TEMPLATE.md
rynowak Jul 31, 2018
47f427d
Updating Health Checks for 2.2
Jul 31, 2018
64124e9
Add filtering to Health Checks middleware
Aug 1, 2018
4549b84
Remove JSON output (#457)
rynowak Aug 3, 2018
ebafbcd
Add filtering by port
rynowak Aug 3, 2018
d1cba1f
Add Database health sample
rynowak Aug 3, 2018
701fe39
Update dependencies.props
aspnetci Aug 5, 2018
602faf5
Update dependencies.props
aspnetci Aug 6, 2018
8ec6945
Update CustomWriterStartup.cs
rynowak Aug 6, 2018
983d783
Update dependencies.props
aspnetci Aug 12, 2018
5c8b549
Update package branding for 2.2.0-preview2
aspnetci Aug 21, 2018
fc7fa4f
Fix sample typo
martincostello Aug 26, 2018
6cd4cf1
Fix typos in samples
zhiliangxu Aug 27, 2018
3e4a3d0
Allow health checks to use any DI lifetime (#466)
rynowak Aug 30, 2018
525fbf4
Fix #468 - all UseHealthChecks without a path
rynowak Aug 30, 2018
dd07e67
Update dependencies.props
aspnetci Sep 2, 2018
b3e163e
Update branding to 2.2.0-preview3
aspnetci Sep 5, 2018
f94ad0f
Update dependencies.props
aspnetci Sep 9, 2018
3ac6439
Update dependencies.props
aspnetci Sep 16, 2018
4259b65
Use options for registering health checks (#479)
rynowak Sep 19, 2018
8fb6c2a
Allow cancellation to propagate
rynowak Sep 20, 2018
ea980c5
Update dependencies.props
aspnetci Sep 23, 2018
1814588
Improved logging for health checks
rynowak Sep 23, 2018
204ff0a
Set cache headers in health check middleware
rynowak Sep 23, 2018
c29b0e6
Update LICENSE.txt
Eilon Sep 27, 2018
fa961b0
Added execution time duration (HealthReportEntry TotalDuration) (#493)
unaizorrilla Sep 28, 2018
4fc5c7c
automated: bulk infrastructure updates. Update bootstrapper scripts a…
Sep 29, 2018
6a8494f
Update dependencies.props
aspnetci Sep 30, 2018
014e7eb
Add EFCore DbContext check
rynowak Sep 23, 2018
9722d89
Adjust log levels
rynowak Oct 6, 2018
1f31e05
Add IHealthCheckPublisher for push-based checks (#498)
rynowak Oct 9, 2018
1ff9a3d
Fixed broken link (#504)
synercoder Oct 16, 2018
f0994e5
Update package branding for 2.2 RTM
aspnetci Oct 16, 2018
b3db95e
Change 'create' to 'delete' in message
guardrex Oct 20, 2018
1afd5b2
Don't use Map
rynowak Oct 28, 2018
4c94bc2
Rename anti-caching option
rynowak Oct 28, 2018
c802d5e
Redesign HealthStatus (again) (#520)
rynowak Oct 31, 2018
a038612
Reorganize source code in preparation to move into aspnet/Extensions
Nov 21, 2018
47a4cce
Merge HealthChecks API source code from aspnet/Diagnostics
Nov 21, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions Extensions.sln
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,14 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GenericHostSample", "src\Ho
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleMsmqHost", "src\Hosting\samples\SampleMsmqHost\SampleMsmqHost.csproj", "{1A203DA9-D706-4094-B549-2611C6DA38F4}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "HealthChecks", "HealthChecks", "{D9252E02-D807-43DA-BBAF-AD739A8D385A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Extensions.Diagnostics.HealthChecks", "src\HealthChecks\HealthChecks\src\Microsoft.Extensions.Diagnostics.HealthChecks.csproj", "{D7757C5F-D9BA-4049-A956-EA1E5BEDE4CF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Extensions.Diagnostics.HealthChecks.Tests", "src\HealthChecks\HealthChecks\test\Microsoft.Extensions.Diagnostics.HealthChecks.Tests.csproj", "{A14AC3AC-3BAD-450A-957F-2F3B45E2412F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions", "src\HealthChecks\Abstractions\src\Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions.csproj", "{5D56AD97-9819-4A65-ADD3-18728FE81D95}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
src\Shared\src\CommandLineUtils\Microsoft.Extensions.CommandLineUtils.Sources.projitems*{00947d4a-c20e-46e3-90c3-6cd6bc87ee72}*SharedItemsImports = 13
Expand Down Expand Up @@ -1514,6 +1522,42 @@ Global
{F047546D-EABA-4E60-AAB3-739C7C2407B1}.Release|x64.Build.0 = Release|Any CPU
{F047546D-EABA-4E60-AAB3-739C7C2407B1}.Release|x86.ActiveCfg = Release|Any CPU
{F047546D-EABA-4E60-AAB3-739C7C2407B1}.Release|x86.Build.0 = Release|Any CPU
{D7757C5F-D9BA-4049-A956-EA1E5BEDE4CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D7757C5F-D9BA-4049-A956-EA1E5BEDE4CF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D7757C5F-D9BA-4049-A956-EA1E5BEDE4CF}.Debug|x64.ActiveCfg = Debug|Any CPU
{D7757C5F-D9BA-4049-A956-EA1E5BEDE4CF}.Debug|x64.Build.0 = Debug|Any CPU
{D7757C5F-D9BA-4049-A956-EA1E5BEDE4CF}.Debug|x86.ActiveCfg = Debug|Any CPU
{D7757C5F-D9BA-4049-A956-EA1E5BEDE4CF}.Debug|x86.Build.0 = Debug|Any CPU
{D7757C5F-D9BA-4049-A956-EA1E5BEDE4CF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D7757C5F-D9BA-4049-A956-EA1E5BEDE4CF}.Release|Any CPU.Build.0 = Release|Any CPU
{D7757C5F-D9BA-4049-A956-EA1E5BEDE4CF}.Release|x64.ActiveCfg = Release|Any CPU
{D7757C5F-D9BA-4049-A956-EA1E5BEDE4CF}.Release|x64.Build.0 = Release|Any CPU
{D7757C5F-D9BA-4049-A956-EA1E5BEDE4CF}.Release|x86.ActiveCfg = Release|Any CPU
{D7757C5F-D9BA-4049-A956-EA1E5BEDE4CF}.Release|x86.Build.0 = Release|Any CPU
{A14AC3AC-3BAD-450A-957F-2F3B45E2412F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A14AC3AC-3BAD-450A-957F-2F3B45E2412F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A14AC3AC-3BAD-450A-957F-2F3B45E2412F}.Debug|x64.ActiveCfg = Debug|Any CPU
{A14AC3AC-3BAD-450A-957F-2F3B45E2412F}.Debug|x64.Build.0 = Debug|Any CPU
{A14AC3AC-3BAD-450A-957F-2F3B45E2412F}.Debug|x86.ActiveCfg = Debug|Any CPU
{A14AC3AC-3BAD-450A-957F-2F3B45E2412F}.Debug|x86.Build.0 = Debug|Any CPU
{A14AC3AC-3BAD-450A-957F-2F3B45E2412F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A14AC3AC-3BAD-450A-957F-2F3B45E2412F}.Release|Any CPU.Build.0 = Release|Any CPU
{A14AC3AC-3BAD-450A-957F-2F3B45E2412F}.Release|x64.ActiveCfg = Release|Any CPU
{A14AC3AC-3BAD-450A-957F-2F3B45E2412F}.Release|x64.Build.0 = Release|Any CPU
{A14AC3AC-3BAD-450A-957F-2F3B45E2412F}.Release|x86.ActiveCfg = Release|Any CPU
{A14AC3AC-3BAD-450A-957F-2F3B45E2412F}.Release|x86.Build.0 = Release|Any CPU
{5D56AD97-9819-4A65-ADD3-18728FE81D95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5D56AD97-9819-4A65-ADD3-18728FE81D95}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5D56AD97-9819-4A65-ADD3-18728FE81D95}.Debug|x64.ActiveCfg = Debug|Any CPU
{5D56AD97-9819-4A65-ADD3-18728FE81D95}.Debug|x64.Build.0 = Debug|Any CPU
{5D56AD97-9819-4A65-ADD3-18728FE81D95}.Debug|x86.ActiveCfg = Debug|Any CPU
{5D56AD97-9819-4A65-ADD3-18728FE81D95}.Debug|x86.Build.0 = Debug|Any CPU
{5D56AD97-9819-4A65-ADD3-18728FE81D95}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5D56AD97-9819-4A65-ADD3-18728FE81D95}.Release|Any CPU.Build.0 = Release|Any CPU
{5D56AD97-9819-4A65-ADD3-18728FE81D95}.Release|x64.ActiveCfg = Release|Any CPU
{5D56AD97-9819-4A65-ADD3-18728FE81D95}.Release|x64.Build.0 = Release|Any CPU
{5D56AD97-9819-4A65-ADD3-18728FE81D95}.Release|x86.ActiveCfg = Release|Any CPU
{5D56AD97-9819-4A65-ADD3-18728FE81D95}.Release|x86.Build.0 = Release|Any CPU
{FC9D173D-8F61-40AF-BFC3-A95A47F75A38}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FC9D173D-8F61-40AF-BFC3-A95A47F75A38}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FC9D173D-8F61-40AF-BFC3-A95A47F75A38}.Debug|x64.ActiveCfg = Debug|Any CPU
Expand Down Expand Up @@ -1688,6 +1732,9 @@ Global
{BE74CE89-456C-44E4-9C27-10755372C17D} = {2930377F-5CDC-4826-A885-B5AE5CAF9EB3}
{89B8541F-FEC6-4D5E-9557-DD8C566CF536} = {2930377F-5CDC-4826-A885-B5AE5CAF9EB3}
{F047546D-EABA-4E60-AAB3-739C7C2407B1} = {89B8541F-FEC6-4D5E-9557-DD8C566CF536}
{D7757C5F-D9BA-4049-A956-EA1E5BEDE4CF} = {D9252E02-D807-43DA-BBAF-AD739A8D385A}
{A14AC3AC-3BAD-450A-957F-2F3B45E2412F} = {D9252E02-D807-43DA-BBAF-AD739A8D385A}
{5D56AD97-9819-4A65-ADD3-18728FE81D95} = {D9252E02-D807-43DA-BBAF-AD739A8D385A}
{FC9D173D-8F61-40AF-BFC3-A95A47F75A38} = {6868A014-43FD-4047-B536-30D5D159D9D4}
{4FA34264-8FAA-4C96-85E1-3212BB385FB0} = {6868A014-43FD-4047-B536-30D5D159D9D4}
{270CD057-32B2-4F16-A76A-9C074B4F35D5} = {6868A014-43FD-4047-B536-30D5D159D9D4}
Expand Down
14 changes: 14 additions & 0 deletions eng/Baseline.props
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,20 @@
<ItemGroup Condition=" '$(PackageId)' == 'Microsoft.Extensions.DiagnosticAdapter' AND '$(TargetFramework)' == 'netstandard2.0' ">
<BaselinePackageReference Include="System.Diagnostics.DiagnosticSource" Version="[4.5.0, )" />
</ItemGroup>
<!-- Package: Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions-->
<PropertyGroup Condition=" '$(PackageId)' == 'Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions' ">
<BaselinePackageVersion>2.2.0</BaselinePackageVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(PackageId)' == 'Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions' AND '$(TargetFramework)' == 'netstandard2.0' " />
<!-- Package: Microsoft.Extensions.Diagnostics.HealthChecks-->
<PropertyGroup Condition=" '$(PackageId)' == 'Microsoft.Extensions.Diagnostics.HealthChecks' ">
<BaselinePackageVersion>2.2.0</BaselinePackageVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(PackageId)' == 'Microsoft.Extensions.Diagnostics.HealthChecks' AND '$(TargetFramework)' == 'netstandard2.0' ">
<BaselinePackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions" Version="[2.2.0, )" />
<BaselinePackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="[2.2.0, )" />
<BaselinePackageReference Include="Microsoft.Extensions.Options" Version="[2.2.0, )" />
</ItemGroup>
<!-- Package: Microsoft.Extensions.FileProviders.Abstractions-->
<PropertyGroup Condition=" '$(PackageId)' == 'Microsoft.Extensions.FileProviders.Abstractions' ">
<BaselinePackageVersion>2.2.0</BaselinePackageVersion>
Expand Down
2 changes: 2 additions & 0 deletions eng/ProjectReferences.props
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
<ProjectReferenceProvider Include="Microsoft.Extensions.FileProviders.Embedded" ProjectPath="$(RepositoryRoot)src\FileProviders\Embedded\src\Microsoft.Extensions.FileProviders.Embedded.csproj" />
<ProjectReferenceProvider Include="Microsoft.Extensions.FileProviders.Physical" ProjectPath="$(RepositoryRoot)src\FileProviders\Physical\src\Microsoft.Extensions.FileProviders.Physical.csproj" />
<ProjectReferenceProvider Include="Microsoft.Extensions.FileSystemGlobbing" ProjectPath="$(RepositoryRoot)src\FileSystemGlobbing\src\Microsoft.Extensions.FileSystemGlobbing.csproj" />
<ProjectReferenceProvider Include="Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions" ProjectPath="$(RepositoryRoot)src\HealthChecks\Abstractions\src\Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions.csproj" />
<ProjectReferenceProvider Include="Microsoft.Extensions.Diagnostics.HealthChecks" ProjectPath="$(RepositoryRoot)src\HealthChecks\HealthChecks\src\Microsoft.Extensions.Diagnostics.HealthChecks.csproj" />
<ProjectReferenceProvider Include="Microsoft.Extensions.Hosting.Abstractions" ProjectPath="$(RepositoryRoot)src\Hosting\Abstractions\src\Microsoft.Extensions.Hosting.Abstractions.csproj" />
<ProjectReferenceProvider Include="Microsoft.Extensions.Hosting" ProjectPath="$(RepositoryRoot)src\Hosting\Hosting\src\Microsoft.Extensions.Hosting.csproj" />
<ProjectReferenceProvider Include="Microsoft.Extensions.Http" ProjectPath="$(RepositoryRoot)src\HttpClientFactory\Http\src\Microsoft.Extensions.Http.csproj" />
Expand Down
2 changes: 2 additions & 0 deletions eng/tools/BaselineGenerator/baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<Package Id="Microsoft.Extensions.DependencyInjection.Specification.Tests" Version="2.2.0" />
<Package Id="Microsoft.Extensions.DependencyInjection" Version="2.2.0" />
<Package Id="Microsoft.Extensions.DiagnosticAdapter" Version="2.2.0" />
<Package Id="Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions" Version="2.2.0" />
<Package Id="Microsoft.Extensions.Diagnostics.HealthChecks" Version="2.2.0" />
<Package Id="Microsoft.Extensions.FileProviders.Abstractions" Version="2.2.0" />
<Package Id="Microsoft.Extensions.FileProviders.Composite" Version="2.2.0" />
<Package Id="Microsoft.Extensions.FileProviders.Embedded" Version="2.2.0" />
Expand Down
7 changes: 7 additions & 0 deletions src/HealthChecks/Abstractions/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory)..\, Directory.Build.props))\Directory.Build.props" />

<PropertyGroup>
<IsProductComponent>true</IsProductComponent>
</PropertyGroup>
</Project>
13 changes: 13 additions & 0 deletions src/HealthChecks/Abstractions/src/HealthCheckContext.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace Microsoft.Extensions.Diagnostics.HealthChecks
{
public sealed class HealthCheckContext
{
/// <summary>
/// Gets or sets the <see cref="HealthCheckRegistration"/> of the currently executing <see cref="IHealthCheck"/>.
/// </summary>
public HealthCheckRegistration Registration { get; set; }
}
}
132 changes: 132 additions & 0 deletions src/HealthChecks/Abstractions/src/HealthCheckRegistration.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;
using System.Collections.Generic;

namespace Microsoft.Extensions.Diagnostics.HealthChecks
{
/// <summary>
/// Represent the registration information associated with an <see cref="IHealthCheck"/> implementation.
/// </summary>
/// <remarks>
/// <para>
/// The health check registration is provided as a separate object so that application developers can customize
/// how health check implementations are configured.
/// </para>
/// <para>
/// The registration is provided to an <see cref="IHealthCheck"/> implementation during execution through
/// <see cref="HealthCheckContext.Registration"/>. This allows a health check implementation to access named
/// options or perform other operations based on the registered name.
/// </para>
/// </remarks>
public sealed class HealthCheckRegistration
{
private Func<IServiceProvider, IHealthCheck> _factory;
private string _name;

/// <summary>
/// Creates a new <see cref="HealthCheckRegistration"/> for an existing <see cref="IHealthCheck"/> instance.
/// </summary>
/// <param name="name">The health check name.</param>
/// <param name="instance">The <see cref="IHealthCheck"/> instance.</param>
/// <param name="failureStatus">
/// The <see cref="HealthStatus"/> that should be reported upon failure of the health check. If the provided value
/// is <c>null</c>, then <see cref="HealthStatus.Unhealthy"/> will be reported.
/// </param>
/// <param name="tags">A list of tags that can be used for filtering health checks.</param>
public HealthCheckRegistration(string name, IHealthCheck instance, HealthStatus? failureStatus, IEnumerable<string> tags)
{
if (name == null)
{
throw new ArgumentNullException(nameof(name));
}

if (instance == null)
{
throw new ArgumentNullException(nameof(instance));
}

Name = name;
FailureStatus = failureStatus ?? HealthStatus.Unhealthy;
Tags = new HashSet<string>(tags ?? Array.Empty<string>(), StringComparer.OrdinalIgnoreCase);
Factory = (_) => instance;
}

/// <summary>
/// Creates a new <see cref="HealthCheckRegistration"/> for an existing <see cref="IHealthCheck"/> instance.
/// </summary>
/// <param name="name">The health check name.</param>
/// <param name="factory">A delegate used to create the <see cref="IHealthCheck"/> instance.</param>
/// <param name="failureStatus">
/// The <see cref="HealthStatus"/> that should be reported when the health check reports a failure. If the provided value
/// is <c>null</c>, then <see cref="HealthStatus.Unhealthy"/> will be reported.
/// </param>
/// <param name="tags">A list of tags that can be used for filtering health checks.</param>
public HealthCheckRegistration(
string name,
Func<IServiceProvider, IHealthCheck> factory,
HealthStatus? failureStatus,
IEnumerable<string> tags)
{
if (name == null)
{
throw new ArgumentNullException(nameof(name));
}

if (factory == null)
{
throw new ArgumentNullException(nameof(factory));
}

Name = name;
FailureStatus = failureStatus ?? HealthStatus.Unhealthy;
Tags = new HashSet<string>(tags ?? Array.Empty<string>(), StringComparer.OrdinalIgnoreCase);
Factory = factory;
}

/// <summary>
/// Gets or sets a delegate used to create the <see cref="IHealthCheck"/> instance.
/// </summary>
public Func<IServiceProvider, IHealthCheck> Factory
{
get => _factory;
set
{
if (value == null)
{
throw new ArgumentNullException(nameof(value));
}

_factory = value;
}
}

/// <summary>
/// Gets or sets the <see cref="HealthStatus"/> that should be reported upon failure of the health check.
/// </summary>
public HealthStatus FailureStatus { get; set; }

/// <summary>
/// Gets or sets the health check name.
/// </summary>
public string Name
{
get => _name;
set
{
if (value == null)
{
throw new ArgumentNullException(nameof(value));
}

_name = value;
}
}

/// <summary>
/// Gets a list of tags that can be used for filtering health checks.
/// </summary>
public ISet<string> Tags { get; }
}
}
Loading