Пример #1
0
 public WebimClient CurrentClient(string ticket = "")
 {
     WebimClient c = new WebimClient(
         CurrentEndpoint(),
         WebimConfig.DOMAIN,
         WebimConfig.APIKEY,
         WebimConfig.HOST,
         WebimConfig.PORT);
     c.Ticket = ticket;
     return c;
 }
 private WebimClient CurrentClient(string ticket = "")
 {
     if (this.client == null)
     {
         this.client = new WebimClient(this.endpoint,
             WebimConfig.Instance().Domain,
             WebimConfig.Instance().APIkey,
             WebimConfig.Instance().Host,
             WebimConfig.Instance().Port);
         this.client.Ticket = ticket;
     }
     return this.client;
 }
 /**
  * 返回当前的Webim客户端。
  *
  * @param ticket
  *            通信令牌
  * @return 当前用户的Webim客户端
  */
 private WebimClient CurrentClient(string ticket = "")
 {
     if (this.client == null)
     {
         this.client = new WebimClient(this.endpoint,
                 WebimConfig.DOMAIN,
                 WebimConfig.APIKEY,
                 WebimConfig.HOST,
                 WebimConfig.PORT);
         this.client.Ticket = ticket;
     }
     return this.client;
 }