4 using System.Collections.Generic;
5 using System.ServiceModel;
6 using System.Threading.Tasks;
8 using SiliconStudio.Core.Diagnostics;
9 using SiliconStudio.Core.Serialization.Assets;
10 using SiliconStudio.Core.Storage;
12 namespace SiliconStudio.BuildEngine
14 [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, UseSynchronizationContext =
false)]
18 private readonly
Command remoteCommand;
25 this.commandContext = commandContext;
26 this.remoteCommand = remoteCommand;
27 this.buildParameters = buildParameters;
37 return buildParameters;
42 Result = commandResult;
55 commandContext.Step.AwaitSpawnedCommand(task);
61 return commandContext.ComputeInputHash(type, filePath);
66 var result =
new Dictionary<ObjectUrl, ObjectId>();
67 foreach (var outputObjects
in commandContext.GetOutputObjectsGroups())
69 foreach (var outputObject
in outputObjects)
71 if (!result.ContainsKey(outputObject.Key))
73 result.Add(outputObject.Key, outputObject.Value.ObjectId);
override string ToString()
void RegisterResult(CommandResultEntry commandResult)
BuildParameterCollection GetBuildParameters()
async Task< ResultStatus > SpawnCommand(Command command)
string Text
Gets or sets the text.
ExceptionInfo ExceptionInfo
Gets or sets the ExceptionInfo of this message.
ObjectId ComputeInputHash(UrlType type, string filePath)
A class that represents a copy of a LogMessage that can be serialized.
void ForwardLog(SerializableLogMessage message)
Command GetCommandToExecute()
LogMessageType Type
Gets or sets the type of this message.
A hash to uniquely identify data.
A base log message used by the logging infrastructure.
ProcessBuilderRemote(LocalCommandContext commandContext, Command remoteCommand, BuildParameterCollection buildParameters)
string Module
Gets or sets the module.
Dictionary< ObjectUrl, ObjectId > GetOutputObjects()