Exemple #1
0
 public DefaultQimenClient(string serverUrl, string appKey, string appSecret)
 {
     this.serverUrl = serverUrl;
     this.appKey    = appKey;
     this.appSecret = appSecret;
     this.webUtils  = new WebUtils();
     this.topLogger = DefaultTopLogger.GetDefault();
 }
 public DefaultAliyunClient(string serverUrl, string accessKeyId, string accessKeySecret)
 {
     this.accessKeyId     = accessKeyId;
     this.accessKeySecret = accessKeySecret;
     this.serverUrl       = serverUrl;
     this.webUtils        = new AliyunWebUtils();
     this.topLogger       = DefaultTopLogger.GetDefault();
 }
Exemple #3
0
 public Endpoint(Identity identity) : this(DefaultTopLogger.GetDefault(), identity)
 {
 }
        internal IDictionary <string, string> systemParameters; // 设置所有请求共享的系统级参数

        #region DefaultDingTalkClient Constructors

        public DefaultDingTalkClient(string serverUrl)
        {
            this.serverUrl = serverUrl;
            this.webUtils  = new WebUtils();
            this.topLogger = DefaultTopLogger.GetDefault();
        }
 public ClientChannelSharedSelector() : this(DefaultTopLogger.GetDefault())
 {
 }
Exemple #6
0
 /// <summary>connect to uri via websocket
 /// </summary>
 /// <param name="uri">remote address</param>
 /// <param name="timeout">timeout in milliseconds</param>
 /// <returns></returns>
 public static IClientChannel Connect(Uri uri, int timeout)
 {
     return(Connect(DefaultTopLogger.GetDefault(), uri, timeout));
 }