Skip to content

Commit

Permalink
Use extension method for Placement registration (#44185)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkargMsft authored Jan 17, 2025
1 parent 7fff981 commit 58988ce
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions docs/orleans/grains/grain-placement.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,7 @@ private static async Task<ISiloHost> StartSilo()

private static void ConfigureServices(IServiceCollection services)
{
services.AddSingletonNamedService<
PlacementStrategy, SamplePlacementStrategy>(
nameof(SamplePlacementStrategy));

services.AddSingletonKeyedService<
Type, IPlacementDirector, SamplePlacementStrategyFixedSiloDirector>(
typeof(SamplePlacementStrategy));
services.AddPlacementDirector<SamplePlacementStrategy, SamplePlacementStrategyFixedSiloDirector>();
}
```

Expand Down

0 comments on commit 58988ce

Please sign in to comment.