/// <summary> /// Initializes a new instance of the <see cref = "XmppSession" /> class /// </summary> public XmppSession() { State = XmppSessionState.LoggedOut; avatarStorage = new AvatarStorage(); chats = new Dictionary <string, XmppChat>(); syncObject = new object(); connection = new XmppConnection(); serviceDiscovery = new XmppServiceDiscovery(this); personalEventing = new XmppPersonalEventing(this); activity = new XmppActivity(this); clientCapabilitiesStorage = new XmppClientCapabilitiesStorage(); roster = new XmppRoster(this); avatarStorage.Load(); clientCapabilitiesStorage.Load(); }
/// <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(); }