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

Use extension method for Placement registration #44185

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rkargMsft
Copy link

@rkargMsft rkargMsft commented Jan 8, 2025

Summary

Registering placement with extension method

The extension method is slightly different than what the old docs showed (AddSingletonNamedService -> Add(ServiceDescriptor.DescribeKeyed(...) which I think still results in the same thing in the DI container, but users shouldn't need to worry about getting that setup correct or updating it if there's an extension method for it already.


Internal previews

📄 File 🔗 Preview link
docs/orleans/grains/grain-placement.md Grain placement

@rkargMsft rkargMsft requested review from IEvangelist and a team as code owners January 8, 2025 18:17
@dotnetrepoman dotnetrepoman bot added this to the January 2025 milestone Jan 8, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates PR is created by someone from the .NET community. label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-contribution Indicates PR is created by someone from the .NET community.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant