private bool _isStarted = false; // for debugging #endregion fields #region Constructors and Destructors /// <summary> /// Initializes a new instance of the <see cref="ServiceContainer" /> class. /// </summary> /// <param name="appManager">The service application manager component.</param> /// <param name="schedulingService">The scheduling service component.</param> /// <param name="webApiComponent">The communication component.</param> /// <param name="systemMonitor">The system monitor component.</param> public ServiceContainer(IAppManager appManager, IServiceAppSchedulingService schedulingService, WebAPIComponent webApiComponent, SystemMonitor systemMonitor) { _appManager = appManager; _schedulingService = schedulingService; _webApiComponent = webApiComponent; _systemMonitor = systemMonitor; }
/// <summary> /// Initializes a new instance of the <see cref="AppManager"/> class. /// </summary> /// <param name="serviceAppFactory">The factory that creates <see cref="ServiceAppProcess"/>.</param> /// <param name="schedulingService">The scheduling service.</param> /// <param name="emailer">The email provider.</param> /// <param name="daoFactory">The DAO factory.</param> public AppManager(IServiceAppProcessFactory serviceAppFactory, IServiceAppSchedulingService schedulingService, EmailProvider emailer, IDaoFactory daoFactory) { _ServiceAppProcesses = new ServiceAppProcessCollection(new ServiceAppProcessComparer()); _serviceAppFactory = serviceAppFactory; _schedulingService = schedulingService; _emailer = emailer; _daoFactory = daoFactory; }