Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the PresenceEventArgs class.
 /// </summary>
 /// <param name="stanza">The Presence stanza on whose behalf the event is
 /// raised.</param>
 /// <exception cref="ArgumentNullException">The stanza parameter is
 /// null.</exception>
 public StreamManagementStanzaEventArgs(StreamManagementStanza stanza)
 {
     stanza.ThrowIfNull("stanza");
     Stanza = stanza;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the StreamManagementStanza class from the specified         /// instance.
 /// </summary>
 /// <param name="sms">An instance of the StreamManagementStanza class to
 /// initialize this instance with.</param>
 /// <exception cref="ArgumentNullException">The message parameter is null.</exception>
 /// <exception cref="ArgumentException">The 'type' attribute of
 /// the specified message stanza is invalid.</exception>
 public StreamManagementStanza(StreamManagementStanza sms)
 {
     sms.ThrowIfNull("message");
     element = sms.element;
 }