Skip to content

Issues #45932

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Preethi486 opened this issue Apr 28, 2025 · 0 comments
Closed

Issues #45932

Preethi486 opened this issue Apr 28, 2025 · 0 comments

Comments

@Preethi486
Copy link

Preethi486 commented Apr 28, 2025

Type of issue

Typo

Description

{
private readonly MessageWriter _messageWriter = new();

protected override async Task ExecuteAsync(CancellationToken stoppingToken)
{
    while (!stoppingToken.IsCancellationRequested)
    {
        _messageWriter.Write($"Worker running at: {DateTimeOffset.Now}");
        await Task.Delay(1_000, stoppingToken);
    }
}

}
issue with the code error with main.cs

Page URL

https://learn.microsoft.com/en-us/dotnet/core/extensions/dependency-injection

Content source URL

https://github.com/dotnet/docs/blob/main/docs/core/extensions/dependency-injection.md

Document Version Independent Id

cc5f00d0-fb50-1229-8fa2-e66b1f45b284

Platform Id

7f5b5732-fc3e-6ffb-b8b8-77b5659a8015

Article author

@IEvangelist

Metadata

  • ID: 8fd55089-b683-2202-6641-c7b61a132f14
  • PlatformId: 7f5b5732-fc3e-6ffb-b8b8-77b5659a8015
  • Service: dotnet-fundamentals

Related Issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant