We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fff981 commit 58988ceCopy full SHA for 58988ce
docs/orleans/grains/grain-placement.md
@@ -154,13 +154,7 @@ private static async Task<ISiloHost> StartSilo()
154
155
private static void ConfigureServices(IServiceCollection services)
156
{
157
- services.AddSingletonNamedService<
158
- PlacementStrategy, SamplePlacementStrategy>(
159
- nameof(SamplePlacementStrategy));
160
-
161
- services.AddSingletonKeyedService<
162
- Type, IPlacementDirector, SamplePlacementStrategyFixedSiloDirector>(
163
- typeof(SamplePlacementStrategy));
+ services.AddPlacementDirector<SamplePlacementStrategy, SamplePlacementStrategyFixedSiloDirector>();
164
}
165
```
166
0 commit comments