Skip to content

Scheduler should accept a TimeProvider in ctor for testing purposes #2148

@AmirShitrit

Description

@AmirShitrit

If the Scheduler class (and extension method on ISenderContext) could accept an instance of TimeProvider, it would be possible to test it without actually waiting for the real time to pass.

This could be done by passing a TimeProvider to one of Task.Delays overloads, but it's only available in .NET 8+ (as is TimeProvider).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions