Exemple #1
0
 public XmppIm(string hostname, string username, string password, int port = 0x1466, bool tls = true, RemoteCertificateValidationCallback validate = null)
 {
     this.extensions           = new HashSet <XmppExtension>();
     this._lastCheckRosterTime = DateTime.Now.AddSeconds(60.0);
     this.core = new XmppCore(hostname, username, password, port, tls, validate);
     this.SetupEventHandlers();
 }
Exemple #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         this.disposed = true;
         if (disposing)
         {
             if (this.core != null)
             {
                 this.core.Close();
             }
             this.core = null;
         }
     }
 }