public void AddDefinition( IAllocationDefinition definition ) { IExecutionSlot executionSlot = new ExecutionSlot( definition ); PluginManager.Install( definition ); ExecutionManager.Add( executionSlot ); }
public IExecutionSlot this[IAllocationDefinition definition] { get { return ExecutionSlots[definition]; } }
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 ); }