Skip to content
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

Dependency Injection Does Not Work #37357

Closed
vikasjayaswal opened this issue Oct 3, 2023 · 0 comments · Fixed by #37791
Closed

Dependency Injection Does Not Work #37357

vikasjayaswal opened this issue Oct 3, 2023 · 0 comments · Fixed by #37791
Assignees
Labels
docs-experience Indicates issues that are about the learn.microsoft.com experience or design [org][type][category] dotnet-orleans/svc Pri3 📌 seQUESTered Identifies that an issue has been imported into Quest.

Comments

@vikasjayaswal
Copy link

vikasjayaswal commented Oct 3, 2023

Type of issue

Code doesn't work

Description

Page: https://learn.microsoft.com/en-us/dotnet/orleans/host/client?pivots=orleans-7-0
Issue: Dependency Injection Section
Error: error CS7036: There is no argument given that corresponds to the required parameter 'services' of 'ClientBuilder.ClientBuilder(IServiceCollection)'

Code that Doesn't work:

public ClusterClientHostedService(ILoggerProvider loggerProvider)
{
Client = new ClientBuilder()
.UseLocalhostClustering()
.ConfigureLogging(builder => builder.AddProvider(loggerProvider))
.Build();
}

[Enter feedback here]

Page URL

https://learn.microsoft.com/en-us/dotnet/orleans/tutorials-and-samples/tutorial-1

Content source URL

https://github.com/dotnet/docs/blob/main/docs/orleans/tutorials-and-samples/tutorial-1.md

Document Version Independent Id

b61f5003-091e-e698-982b-124316d7eba3

Article author

IEvangelist


Associated WorkItem - 169716

@IEvangelist IEvangelist self-assigned this Oct 3, 2023
@IEvangelist IEvangelist added docs-experience Indicates issues that are about the learn.microsoft.com experience or design [org][type][category] okr-experience 🗺️ reQUEST Triggers an issue to be imported into Quest. labels Oct 13, 2023
@dotnet-bot dotnet-bot removed ⌚ Not Triaged Not triaged labels Oct 13, 2023
@github-actions github-actions bot added 📌 seQUESTered Identifies that an issue has been imported into Quest. and removed 🗺️ reQUEST Triggers an issue to be imported into Quest. labels Oct 14, 2023
@ghost ghost added the in-pr This issue will be closed (fixed) by an active pull request. label Oct 30, 2023
@IEvangelist IEvangelist moved this from 🔖 Ready to 👀 In review in dotnet/docs October 2023 sprint Oct 30, 2023
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in dotnet/docs October 2023 sprint Oct 30, 2023
@ghost ghost removed the in-pr This issue will be closed (fixed) by an active pull request. label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-experience Indicates issues that are about the learn.microsoft.com experience or design [org][type][category] dotnet-orleans/svc Pri3 📌 seQUESTered Identifies that an issue has been imported into Quest.
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants