public AmazonSign(AmazonAuthentication amazonAuthentication, AmazonEndpoint amazonEndpoint) { var domain = AmazonDomain.GetDomain(amazonEndpoint); var secret = Encoding.UTF8.GetBytes(amazonAuthentication.SecretKey); this.endPoint = $"webservices.{domain}"; this.akid = amazonAuthentication.AccessKey; this.signer = new HMACSHA256(secret); }
public AmazonWrapper(AmazonAuthentication authentication, AmazonEndpoint endpoint, string associateTag = "nagerat-21") { this._authentication = authentication; this._endpoint = endpoint; this._associateTag = associateTag; }