Exemple #1
0
 /// <summary>
 /// ����JDK����
 /// </summary>
 /// <param name="appId">΢�Ź����˺ŵ�AppId</param>
 /// <param name="appSecret">�����˺ŵ�appSecret</param>
 /// <param name="debug">�Ƿ����</param>
 public JSSDK(string appId, string appSecret, bool debug = false)
 {
     this.appId = appId;
     this.appSecret = appSecret;
     this._cache = SimpleCacheProvider.GetInstance();
     this._debug = debug;
 }
Exemple #2
0
 /// <summary>
 /// 构建JDK对象
 /// </summary>
 /// <param name="appId">微信公众账号的AppId</param>
 /// <param name="appSecret">公众账号的appSecret</param>
 /// <param name="debug">是否调试</param>
 public JSSDK(string appId, string appSecret, bool debug = false)
 {
     this.appId     = appId;
     this.appSecret = appSecret;
     this._cache    = SimpleCacheProvider.GetInstance();
     this._debug    = debug;
 }
 public static SimpleCacheProvider GetInstance()
 {
     if (_instance == null)
     {
         _instance = new SimpleCacheProvider();
     }
     return(_instance);
 }
 public static SimpleCacheProvider GetInstance()
 {
     if (_instance == null) _instance = new SimpleCacheProvider();
     return _instance;
 }