public void Initialize()
        {
            IServiceManager manager = ServiceManager.GetInstance();

            manager.Bind <ITelemetryServicesProvider>(provider, true);
            manager.Bind <ITelemetryDataCollector>(typeof(TelemetryDataCollectorImpl), true);

            IScheduledTaskManager taskManager = manager.GetService <IScheduledTaskManager>();

            taskManager.AddScheduledTask(new HWUsageCollectorTask());
            taskManager.AddScheduledTask(new TelemetryProcessorTask());
        }
Пример #2
0
        private void EnableBasicServerProcessorModeInternal()
        {
            if (_basicProcessorType == typeof(LoadBalanceServer))
            {
                if (security.IsAuthenticationEnabled())
                {
                    throw new InvalidOperationException("Load balancing cannot be enabled when authentication services are enabled");
                }
                isLoadBalanceEnabled = (_basicProcessorType == typeof(LoadBalanceServer));
            }

            serviceManager.Bind <IBasicServerController>(_basicProcessorType, false);
            isBasicServerEnabled = true;
        }