
            qr
               ֧ʾṹ˵             
            ts 
                                                                  
	 Visual studio 汾2010
	 Framework3.5ϰ汾
             Ȩ֧й缼޹˾


 1Ҫļ˵


DefaultAopClient.cs

public DefaultAopClient(string serverUrl, string appId, string privateKeyPem)
ܣ췽
룺serverUrl ǿգַԣhttp://openapi.alipaydev.com/gateway.do ϣhttps://openapi.alipay.com/gateway.do 
      appId ǿգӦID
      privateKeyPem ǿգ˽Կ
ÿͻʵ


public T Execute<T>(IAopRequest<T> request) where T : AopResponse
ܣִãڲҪȨӿڵã
룺request ӿ
T 󷵻ض

public T Execute<T>(IAopRequest<T> request, string accessToken) where T : AopResponse
ܣִãҪȨӿڵã
룺request ӿ
      accessToken Ȩ
T 󷵻ض


 2ʾ


ο Aop.Api.Test.PublicTest.cs




 3ǩ



Aop.Api.Util.AlipaySignature.cs

public static string RSASign(IDictionary<string, string> parameters, string privateKeyPem)
ܣRSAǩ
룺parameters ǩmap
      privateKeyPem ˽Կ
ǩ

public static bool RSACheckV2(IDictionary<string, string> parameters, string publicKeyPem)
ܣRSAǩ
룺parameters ǩmap
      publicKeyPem Կ
ǩ

public static bool RSACheckContent(string signContent, string sign, string publicKeyPem)
ܣRSAǩ
룺signContent ǩַ
      sign ǩ
      publicKeyPem Կ
ǩ

