Пример #1
0
        public void AddDefinition( IAllocationDefinition definition )
        {
            IExecutionSlot executionSlot = new ExecutionSlot( definition );

            PluginManager.Install( definition );
            ExecutionManager.Add( executionSlot );
        }
Пример #2
0
		public IExecutionSlot this[IAllocationDefinition definition]
		{
			get
			{
				return ExecutionSlots[definition];
			}
		}
Пример #3
0
        public ExecutionSlot( IAllocationDefinition definition )
        {
            if( definition == null )
                throw new NullReferenceException( "Definition cannot be null" );

            _Plugins              = new List<IPlugin>();
            _Definition           = definition;
            _ParallelPluginRunner = new ParallelQueue( definition.MaxSlots, true );
        }