public static uint RunCommandWithLock(Lifetime lifetime, [NotNull] InvokeChildProcess.StartInfo startinfo, [CanBeNull] ILogger logger) { lock (HACK_getMutexForUBT()) { return(InvokeChildProcess.InvokeCore(lifetime, startinfo, InvokeChildProcess.SyncAsync.Sync, logger).Result); } }
private Task <uint> StartUBTBuildPluginAsync(Lifetime lifetime, FileSystemPath command, CommandLineBuilderJet commandLine, InvokeChildProcess.PipeStreams pipeStreams) { InvokeChildProcess.StartInfo startinfo = new InvokeChildProcess.StartInfo(command) { Arguments = commandLine, Pipe = pipeStreams }; lock (HACK_getMutexForUBT()) { return(InvokeChildProcess.InvokeCore(lifetime, startinfo, InvokeChildProcess.SyncAsync.Async, myLogger)); } }