/// <summary>
        /// Helper creator to directly register one listener associated to the measure.
        /// </summary>
        /// <param name="measure"></param>
        public static AutoMeasuresMulticasterCallback CreateAndRegister(
            AbstractMeasures measure, MeasuresExecutorsListener listerner)
        {
            var instance = new AutoMeasuresMulticasterCallback(measure);

            instance.Subscribe(listerner);
            return(instance);
        }
 /// <summary>
 /// Constructor with one <see cref="AbstractMeasures"/> measure.
 /// </summary>
 /// <param name="measure"></param>
 public AutoMeasuresCallback(AbstractMeasures measure)
 {
     measure.MeasureAdded += OnMeasureAdded;
 }
Beispiel #3
0
 /// <summary>
 /// Constructor with one <see cref="AbstractMeasures"/> measure.
 /// </summary>
 /// <param name="measure"></param>
 public AutoMeasuresExecutorsCallback(AbstractMeasures measure)
     : base(measure)
 {
     measure.MeasureAdded += OnMeasureAdded;
 }
 /// <summary>
 /// Constructor with <see cref="AbstractMeasures"/>.
 /// </summary>
 /// <param name="measure"></param>
 public AutoMeasuresMulticasterCallback(AbstractMeasures measure)
     : base(measure)
 {
 }