/// <summary> /// Attempts to register a new user. This will fire /// OnRegisterInfo to retrieve information about the /// new user, and OnRegistered when the registration /// is completed or failed. /// </summary> /// <param name="jid">The user to register.</param> public void Register(JID jid) { RegisterIQ iq = new RegisterIQ(Document); Register reg = iq.Instruction; iq.Type = IQType.get; iq.To = jid.Server; reg.Username = jid.User; Tracker.BeginIQ(iq, new IqCB(OnGetRegister), jid); }
/// <summary> /// Attempts to register a new user. This will fire /// OnRegisterInfo to retrieve information about the /// new user, and OnRegistered when the registration /// is completed or failed. /// </summary> /// <param name="jid">The user to register.</param> public void Register(JID jid) { RegisterIQ iq = new RegisterIQ(Document); Register reg = iq.Instruction; iq.Type = IQType.Get; iq.To = jid.Server; reg.Username = jid.User; Tracker.BeginIQ(iq, OnGetRegister, jid); }