Esempio n. 1
0
 /// <summary>
 ///     Ctor.
 /// </summary>
 /// <param name="metricEventRouter">for routing metric events</param>
 /// <param name="runtimeURI">runtime URI</param>
 /// <param name="metricScheduleService">for scheduling a new execution</param>
 /// <param name="interval">for rescheduling the execution</param>
 public MetricExecEngine(
     MetricEventRouter metricEventRouter,
     string runtimeURI,
     MetricScheduleService metricScheduleService,
     long interval)
 {
     this.metricEventRouter = metricEventRouter;
     this.runtimeURI = runtimeURI;
     this.metricScheduleService = metricScheduleService;
     Interval = interval;
 }
Esempio n. 2
0
        public void SetUp()
        {
            svc = new MetricScheduleService();

            execs = new SupportMetricExecution[100];
            for (int i = 0; i < execs.Length; i++)
            {
                execs[i] = new SupportMetricExecution();
            }

            executions = new List <MetricExec>();
        }