/// <summary>
 /// Init constructor.
 /// </summary>
 public BayeuxHandshakeExtension(string userName, string password)
 {
     if (!string.IsNullOrEmpty(userName) || !string.IsNullOrEmpty(password))
     {
         Credentials = new BayeuxCredentials(userName, password);
     }
 }
 /// <summary>
 /// Init constructor.
 /// </summary>
 public BayeuxHandshakeExtension(string userName, string password)
 {
     if (!string.IsNullOrEmpty(userName) || !string.IsNullOrEmpty(password))
         Credentials = new BayeuxCredentials(userName, password);
 }