コード例 #1
0
 public RapportConcreteObserver(IFitnessRatingCalculatorStrategy calculatorStrategy,
                                FitnessRatingControlConsumer fitnessRatingControlConsumer)
 {
     fitnessRatingCalculatorStrategy = calculatorStrategy;
     fitnessRatingControlConsumer.Attach(this);
     _fitnessRatingControlConsumer = fitnessRatingControlConsumer;
 }
コード例 #2
0
 public FitnessRatingControlConsumer(BlockingCollection <VO2DataContainer> vo2DataCollection, IFitnessRatingCalculatorStrategy fitnessRatingCalculatorStrategy)
 {
     _vo2DataCollection = vo2DataCollection;
     _fitnessRatingCalculatorStrategy = fitnessRatingCalculatorStrategy;
     isActive = false;
 }