Exemplo n.º 1
0
        public override async Task <int> StartContainerViaCommandLineAsync(string containerName, string startParameters,
                                                                           string containerCommand = "")
        {
            if (containerName != BaseMapper.GetFullImageName(OpenVslamMapper.ViewerContainerImage))
            {
                return(await base.StartContainerViaCommandLineAsync(containerName, startParameters, containerCommand));
            }

            var fInfo = await CreateScriptFile(containerName, startParameters, containerCommand);

            var result = await RunProcessAsync(BaseProgram, $"{ExecCmdOption} ./{fInfo.Name}");

            File.Delete(fInfo.FullName);

            return(result);
        }