예제 #1
0
파일: JSSDK.cs 프로젝트: nboss/WeChatJsSdk
 /// <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;
 }
예제 #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);
 }
예제 #4
0
 public static SimpleCacheProvider GetInstance()
 {
     if (_instance == null) _instance = new SimpleCacheProvider();
     return _instance;
 }