private void LoadSignatureData(ZipPackage package) { if (package.IsSigned) { PublisherSignature = package.PublisherSignature; RepositorySignatures = package.RepositorySignatures; ValidationResult = new ValidationResultViewModel(package.VerificationResult); } }
private async void LoadSignatureData(ZipPackage package) { if (package.IsSigned) { PublisherSignature = package.PublisherSignature; RepositorySignatures = package.RepositorySignatures; await Task.Run(() => package.VerifySignatureAsync()); ValidationResult = new ValidationResultViewModel(package.VerificationResult); } }
public async void LoadSignatureData(ISignaturePackage package) { if (package is null) { throw new ArgumentNullException(nameof(package)); } if (package.IsSigned) { PublisherSignature = package.PublisherSignature; RepositorySignature = package.RepositorySignature; IsSigned = true; await Task.Run(() => package.VerifySignatureAsync()); ValidationResult = new ValidationResultViewModel(package.VerificationResult); } }