コード例 #1
0
 /// <summary>
 ///
 /// </summary>
 public ClientContact(String AppKey, String AppSecret)
 {
     this.AppKey    = AppKey;
     this.AppSecret = AppSecret;
     handler        = new ApiHandler();
     handler        = new ContactHandler(handler);
     handler        = new RetryHandler(handler);
 }
コード例 #2
0
ファイル: ClientWorker.cs プロジェクト: ChiLoneYu/dingtalk
 /// <summary>
 ///
 /// </summary>
 public ClientWorker(String AppKey, String AppSecret)
 {
     this.AppKey    = AppKey;
     this.AppSecret = AppSecret;
     handler        = new ApiHandler();
     handler        = new WorkerHandler(handler);
     handler        = new RetryHandler(handler);
 }
コード例 #3
0
 /// <summary>
 ///
 /// </summary>
 public ClientMessage(String AppKey, String AppSecret)
 {
     this.AppKey    = AppKey;
     this.AppSecret = AppSecret;
     handler        = new ApiHandler();
     handler        = new MessageHandler(handler);
     handler        = new RetryHandler(handler);
 }
コード例 #4
0
ファイル: ClientCspace.cs プロジェクト: ChiLoneYu/dingtalk
 /// <summary>
 ///
 /// </summary>
 public ClientCspace(String AppKey, String AppSecret)
 {
     this.AppKey    = AppKey;
     this.AppSecret = AppSecret;
     handler        = new ApiHandler();
     handler        = new CspaceHandler(handler);
     handler        = new RetryHandler(handler);
 }
コード例 #5
0
ファイル: Handler.cs プロジェクト: jangocheng/dingtalk-1
        /// <summary>
        ///
        /// </summary>
        public Handler()
        {
            PipelineHandler handler;

            handler = new ApiHandler();
            handler = new DingtalkHandler(handler);
            handler = new RetryHandler(handler);
            inner   = handler;
        }
コード例 #6
0
ファイル: ClientMedia.cs プロジェクト: ChiLoneYu/dingtalk
 /// <summary>
 ///
 /// </summary>
 public ClientMedia()
 {
     this.CorpId    = CfgCorpId;
     this.AppKey    = CfgAppKey;
     this.AppSecret = CfgAppSecret;
     handler        = new ApiHandler();
     handler        = new MediaHandler(handler);
     handler        = new RetryHandler(handler);
 }
コード例 #7
0
 /// <summary>
 ///
 /// </summary>
 public ClientCspace(String AppKey, String AppSecret, String ApiServer = null)
 {
     this.AppKey    = AppKey;
     this.AppSecret = AppSecret;
     this.ApiServer = string.IsNullOrEmpty(ApiServer) ? CfgApiServer : ApiServer;
     handler        = new ApiHandler();
     handler        = new CspaceHandler(handler);
     handler        = new RetryHandler(handler);
 }
コード例 #8
0
 /// <summary>
 ///
 /// </summary>
 public ClientContact()
 {
     this.CorpId    = CfgCorpId;
     this.AppKey    = CfgAppKey;
     this.AppSecret = CfgAppSecret;
     handler        = new ApiHandler();
     handler        = new ContactHandler(handler);
     handler        = new RetryHandler(handler);
 }
コード例 #9
0
ファイル: ClientMedia.cs プロジェクト: ChiLoneYu/dingtalk
 /// <summary>
 ///
 /// </summary>
 public ClientMedia(String CorpId, String AppKey, String AppSecret, String SuiteTicket)
 {
     this.CorpId      = CorpId;
     this.AppKey      = AppKey;
     this.AppSecret   = AppSecret;
     this.SuiteTicket = SuiteTicket;
     handler          = new ApiHandler();
     handler          = new MediaHandler(handler);
     handler          = new RetryHandler(handler);
 }
コード例 #10
0
 /// <summary>
 ///
 /// </summary>
 public ClientCspace()
 {
     this.CorpId    = CfgCorpId;
     this.AppKey    = CfgAppKey;
     this.AppSecret = CfgAppSecret;
     this.ApiServer = CfgApiServer;
     handler        = new ApiHandler();
     handler        = new CspaceHandler(handler);
     handler        = new RetryHandler(handler);
 }
コード例 #11
0
 /// <summary>
 ///
 /// </summary>
 public ClientMessage(String CorpId, String AppKey, String AppSecret, String SuiteTicket, String ApiServer = null)
 {
     this.CorpId      = CorpId;
     this.AppKey      = AppKey;
     this.AppSecret   = AppSecret;
     this.SuiteTicket = SuiteTicket;
     this.ApiServer   = string.IsNullOrEmpty(ApiServer) ? CfgApiServer : ApiServer;
     handler          = new ApiHandler();
     handler          = new MessageHandler(handler);
     handler          = new RetryHandler(handler);
 }