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 })); }
public async Task <CertNoResponse> GetCertNoAsync() { var certNo = CustomsSignSdk.GetCertNo(); return(await Task.Run(() => new CertNoResponse { CertNo = certNo })); }
public async Task <CertResponse> GetCertAsync() { var cert = CustomsSignSdk.GetCardID(); return(await Task.Run(() => new CertResponse { Cert = cert })); }