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);
 }
예제 #4
0
 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;
 }
예제 #5
0
 public void Add(IWriteCommand command)
 {
     Commands.Add(command);
 }
예제 #6
0
 public void Invoke <TInput>(IWriteCommand <TInput> command, TInput value)
 {
     command.Input = value;
     command.Execute();
 }