Beispiel #1
0
        private void InitServiceCheckers(ServiceDef[] services)
        {
            DateTime now = DateTime.Now;

            Array.ForEach(services, x =>
            {
                _serviceCheckers.Add(new ServiceCheckerContainer()
                {
                    NextCheckTime = now,
                    Checker       = ComponentFactory.CreateServiceChecker(x),
                    ServiceDef    = x
                });
            });
        }