2021-11-28 13:18:21 +00:00
|
|
|
|
namespace PettingZoo.Core.Connection
|
|
|
|
|
{
|
|
|
|
|
public class ConnectionParams
|
|
|
|
|
{
|
|
|
|
|
public string Host { get; }
|
|
|
|
|
public string VirtualHost { get; }
|
|
|
|
|
public int Port { get; }
|
|
|
|
|
public string Username { get; }
|
|
|
|
|
public string Password { get; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ConnectionParams(string host, string virtualHost, int port, string username, string password)
|
|
|
|
|
{
|
|
|
|
|
Host = host;
|
|
|
|
|
VirtualHost = virtualHost;
|
|
|
|
|
Port = port;
|
|
|
|
|
Username = username;
|
|
|
|
|
Password = password;
|
|
|
|
|
}
|
2022-01-30 10:12:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return $"{Host}:{Port}{VirtualHost}";
|
|
|
|
|
}
|
2021-11-28 13:18:21 +00:00
|
|
|
|
}
|
|
|
|
|
}
|