Skip to content

Use TimeProvider in M.E.Diagnostics.HealthChecks #49715

Open
@halter73

Description

@halter73
          I would love for these to be really deterministic though. So it'd even pass given a starved scheduler and whatnot. If you're feeling ambitious, you could kick the tires on the [new TimeProvider API](https://github.com/dotnet/runtime/issues/36617#issuecomment-1468661805). It was basically made for exactly this use case, so you wouldn't have to go and make your own custom abstraction. It was just merged 4 days ago, so it's not available quite yet in the aspnetcore repo, but it should arrive in the next SDK update which usually happens Monday. It's already available in the [latest installer](https://github.com/dotnet/installer#table).

Originally posted by @halter73 in #42646 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-healthchecksIncludes: Healthchecks (some bugs also in Extensions repo)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions