예제 #1
0
        public async Task <bool> SetCustomizations([NotNull] string jobId, [NotNull] Customization[] customizations)
        {
            if (customizations == null)
            {
                throw new ArgumentNullException(nameof(customizations));
            }

            if (string.IsNullOrWhiteSpace(jobId))
            {
                throw new ArgumentException(
                          @"Value cannot be null or whitespace.", nameof(jobId)
                          );
            }

            var request = new SetCustomizationsRequest(
                Config.UproduceUsername,
                Config.UproduceUserPassword,
                jobId,
                customizations,
                false);

            var response = await TicketSvc.SetCustomizationsAsync(request);

            return(response.SetCustomizationsResult);
        }
예제 #2
0
        public async Task <string> CreateProofTicket(ArtifactType artifact)
        {
            var tkt = await TicketSvc.LoadJobTicketAsync(
                Config.UproduceUsername, Config.UproduceUserPassword, Document.ProofSettingsJobId.ToString());

            return(tkt);
        }