Esempio n. 1
0
 private TestContext(SignArgs args, TestDirectory directory, X509Certificate2 certificate, TestLogger logger)
 {
     Args        = args;
     Directory   = directory;
     Certificate = certificate;
     Runner      = new SignCommandRunner();
     Logger      = logger;
 }
Esempio n. 2
0
        public override async Task ExecuteCommandAsync()
        {
            var signArgs          = GetSignArgs();
            var signCommandRunner = new SignCommandRunner();
            var result            = await signCommandRunner.ExecuteCommandAsync(signArgs);

            if (result != 0)
            {
                throw new ExitCodeException(exitCode: result);
            }
        }
Esempio n. 3
0
        public override async Task ExecuteCommandAsync()
        {
            var signRequest       = GetSignRequest();
            var packages          = GetPackages();
            var signCommandRunner = new SignCommandRunner();
            var result            = await signCommandRunner.ExecuteCommandAsync(
                packages, signRequest, Timestamper, Console, OutputDirectory, Overwrite, CancellationToken.None);


            if (result != 0)
            {
                throw new ExitCodeException(exitCode: result);
            }
        }