Exemple #1
0
        public async Task <SignResponse> SignAsync(SignRequest signReq)
        {
            var result = CustomsSignSdk.Sign(signReq.Content, AppConfig.UKeyPassword);

            return(await Task.Run(() => new SignResponse { Content = signReq.Content, SignResult = result }));
        }
Exemple #2
0
        public async Task <CertNoResponse> GetCertNoAsync()
        {
            var certNo = CustomsSignSdk.GetCertNo();

            return(await Task.Run(() => new CertNoResponse { CertNo = certNo }));
        }
Exemple #3
0
        public async Task <CertResponse> GetCertAsync()
        {
            var cert = CustomsSignSdk.GetCardID();

            return(await Task.Run(() => new CertResponse { Cert = cert }));
        }