/// <summary> /// Initializes a new instance of the <see cref="XmppSession"/> class /// </summary> public XmppSession() { this.State = XmppSessionState.LoggedOut; this.avatarStorage = new AvatarStorage(); this.chats = new Dictionary<string, XmppChat>(); this.syncObject = new object(); this.connection = new XmppConnection(); this.serviceDiscovery = new XmppServiceDiscovery(this); this.personalEventing = new XmppPersonalEventing(this); this.activity = new XmppActivity(this); this.clientCapabilitiesStorage = new XmppClientCapabilitiesStorage(); this.roster = new XmppRoster(this); this.avatarStorage.Load(); this.clientCapabilitiesStorage.Load(); }
/// <summary> /// Initializes a new instance of the <see cref="T:XmppSaslDigestAuthenticator"/> class. /// </summary> public XmppSaslDigestAuthenticator(XmppConnection connection) : base(connection) { this.cnonce = Convert.ToBase64String(Encoding.UTF8.GetBytes(XmppIdentifierGenerator.Generate())); this.successEvent = new AutoResetEvent(false); }
/// <summary> /// Disposes the specified disposing. /// </summary> /// <param name="disposing">if set to <c>true</c> [disposing].</param> protected virtual void Dispose(bool disposing) { if (disposing) { this.Unsubscribe(); if (this.pendingMessages != null) { this.pendingMessages.Clear(); } this.pendingMessages = null; this.connection = null; this.authenticationError = null; this.authenticationFailed = false; } }
/// <summary> /// Initializes a new instance of the <see cref="T:XmppAuthenticator"/> class. /// </summary> /// <param name="connection">A <see cref="XmppConnection"/> instance</param> protected XmppAuthenticator(XmppConnection connection) { this.connection = connection; this.Subscribe(); }
/// <summary> /// Initializes a new instance of the <see cref="T:XmppSaslPlainAuthenticator"/> class. /// </summary> public XmppSaslPlainAuthenticator(XmppConnection connection) : base(connection) { this.waitEvent = new AutoResetEvent(false); }