Esempio n. 1
0
 /// <summary>Initializes a new instance of the <see cref="JabberConnection"/> class.</summary>
 /// <param name="account">       The account.</param>
 /// <param name="password">      The password.</param>
 /// <param name="server">        The server.</param>
 /// <param name="connectServer"> The connect server.</param>
 /// <param name="authentication">The authentication.</param>
 public JabberConnection(string account, string password, string server, string connectServer, JabberAuthMethod authentication)
     : base(new JabberClient(), account, password)
 {
     jabberClient.Server = server;
     jabberClient.ConnectServer = connectServer;
     jabberClient.ClientAuthMetod = authentication;
     jabberClient.ServerPort = 5222;
 }
Esempio n. 2
0
 /// <summary>Initializes a new instance of the <see cref="JabberConnection"/> class.</summary>
 /// <param name="account">       The account.</param>
 /// <param name="password">      The password.</param>
 /// <param name="server">        The server.</param>
 /// <param name="connectServer"> The connect server.</param>
 /// <param name="authentication">The authentication.</param>
 public JabberConnection(string account, string password, string server, string connectServer, JabberAuthMethod authentication)
     : base(new JabberClient(), account, password)
 {
     jabberClient.Server          = server;
     jabberClient.ConnectServer   = connectServer;
     jabberClient.ClientAuthMetod = authentication;
     jabberClient.ServerPort      = 5222;
 }