Ejemplo n.º 1
0
        public ScaleManager(IWorkerInfoProvider provider, IWorkerTable table, IScaleHandler eventHandler, IScaleTracer tracer, ScaleSettings settings)
        {
            _provider     = provider;
            _table        = table;
            _eventHandler = eventHandler;
            _tracer       = tracer;
            _settings     = settings;

            _workerUpdateTimer = new Timer(OnUpdateWorkerStatus, null, Timeout.Infinite, Timeout.Infinite);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ScaleManager"/> class.
 /// core function runtime will instantiate this with table and event handler implementation
 /// </summary>
 public ScaleManager(IWorkerInfoProvider provider, IWorkerTable table, IScaleHandler eventHandler, IScaleTracer tracer)
     : this(provider, table, eventHandler, tracer, ScaleSettings.Instance)
 {
 }
 public MockScaleManager(IWorkerInfoProvider provider, IWorkerTable table, IScaleHandler scaleHandler, IScaleTracer tracer, ScaleSettings settings = null)
     : base(provider, table, scaleHandler, tracer, settings ?? ScaleSettings.Instance)
 {
 }