public BuildTargetAdvanced(BuildTargetSimple buildTargetSimple, ITranspileCommand transpileCommand, IBuildScopeCommand buildScopeCommand, IWriteCommand writeCommand) { this.buildTargetSimple = buildTargetSimple; this.transpileCommand = transpileCommand; this.buildScopeCommand = buildScopeCommand; this.writeCommand = writeCommand; }
public void StageCommand(IWriteCommand <TEntity> command) { if (command == null) { throw new ArgumentNullException(nameof(command)); } StagedCommands.Add(command); }
void IWriteProcessor.ExecuteCommand(IWriteCommand command) { if (command == null) { throw new ArgumentNullException(nameof(command)); } // send the command command.SendCommand(this); }
public BuildTarget(string targetName, string filePrefix, Build build, MetadataLogService metadataLogService, ITranspileCommand transpileCommand, ICompileCommand compileCommand, IASTCommand astCommand, IBuildScopeCommand buildScopeCommand, IWriteCommand writeCommand) { this.targetName = targetName; this.build = build; this.metadataLogService = metadataLogService; this.filePrefix = filePrefix; this.transpileCommand = transpileCommand; this.compileCommand = compileCommand; this.astCommand = astCommand; this.buildScopeCommand = buildScopeCommand; this.writeCommand = writeCommand; }
public void Add(IWriteCommand command) { Commands.Add(command); }
public void Invoke <TInput>(IWriteCommand <TInput> command, TInput value) { command.Input = value; command.Execute(); }