public TestState( ILogManager logManager, ISceneManager sceneManager, ISystemsManager systemsManager ) : base("test", null, sceneManager, logManager) { this.SystemsManager = systemsManager; }
public PerformanceTestRunner( INGinCore core, ILogManager logManager, ISystemsManager systemsManager ) { this.Core = core; this.LogManager = logManager; this.SystemsManager = systemsManager; }
public TaskManager( ILogManager logManager, ISystemsManager systemsManager, IMainLoopManager mainLoopManager, IStateManager stateManager ) { if ( logManager == null ) { string message = "The log manager must not be null."; ArgumentNullException argEx = new ArgumentNullException( "logManager", message ); throw argEx; } this.LogManager = logManager; if ( systemsManager == null ) { string message = "The systems manager must not be null."; ArgumentNullException argEx = new ArgumentNullException( "systemsManager", message ); LogManager.Trace( Namespace.LoggerName, LogLevel.Error, argEx, message ); throw argEx; } if ( mainLoopManager == null ) { string message = "The main loop manager must not be null."; ArgumentNullException argEx = new ArgumentNullException( "mainLoopManager", message ); LogManager.Trace( Namespace.LoggerName, LogLevel.Error, argEx, message ); throw argEx; } if ( stateManager == null ) { string message = "The state manager must not be null."; ArgumentNullException argEx = new ArgumentNullException( "stateManager", message ); LogManager.Trace( Namespace.LoggerName, LogLevel.Error, argEx, message ); throw argEx; } this.SystemsManager = systemsManager; this.MainLoopManager = mainLoopManager; this.StateManager = stateManager; this.MainLoopManager.HeartbeatStarted += new HeartbeatDelegate( this.MainLoopManager_HeartbeatStarted ); // set min and max to processor count int defaultThreadCount = Environment.ProcessorCount; ThreadPool.SetMaxThreads( defaultThreadCount, defaultThreadCount ); ThreadPool.SetMinThreads( defaultThreadCount, defaultThreadCount ); int minWorker, minComp, maxWorker, maxComp; ThreadPool.GetMinThreads( out minWorker, out minComp ); ThreadPool.GetMaxThreads( out maxWorker, out maxComp ); this.LogManager.Trace( Namespace.LoggerName, LogLevel.Debugging, "ThreadPool WorkerThreads - MIN: {0}, MAX: {1}", minWorker, maxWorker ); }
public TestState( ILogManager logManager, ISceneManager sceneManager, ISystemsManager systemsManager, IMessageManager messageManager ) : base("test", null, sceneManager, logManager, new ExitState( sceneManager, logManager, messageManager )) { this.SystemsManager = systemsManager; }