Ejemplo n.º 1
0
 public PlacementDirectorsManager(
     IServiceProvider services,
     DefaultPlacementStrategy defaultPlacementStrategy,
     ClientObserversPlacementDirector clientObserversPlacementDirector)
 {
     this.serviceProvider                  = services;
     this.defaultPlacementStrategy         = defaultPlacementStrategy.PlacementStrategy;
     this.clientObserversPlacementDirector = clientObserversPlacementDirector;
     this.ResolveBuiltInStrategies();
 }
Ejemplo n.º 2
0
 public PlacementDirectorsManager(
     IServiceProvider services,
     PlacementStrategy defaultPlacementStrategy,
     ClientObserversPlacementDirector clientObserversPlacementDirector)
 {
     this.serviceProvider                  = services;
     this.defaultPlacementStrategy         = defaultPlacementStrategy;
     this.clientObserversPlacementDirector = clientObserversPlacementDirector;
     this.ResolveBuiltInStrategies();
     // TODO: Make default selector configurable
     this.defaultActivationSelector = ResolveSelector(RandomPlacement.Singleton, true);
 }