2016-06-18 14:50:32 +00:00
|
|
|
|
namespace PettingZoo.Model
|
|
|
|
|
{
|
|
|
|
|
public class ConnectionInfo
|
|
|
|
|
{
|
|
|
|
|
public string Host { get; set; }
|
|
|
|
|
public string VirtualHost { get; set; }
|
|
|
|
|
public int Port { get; set; }
|
|
|
|
|
public string Username { get; set; }
|
|
|
|
|
public string Password { get; set; }
|
2016-06-20 10:30:03 +00:00
|
|
|
|
|
|
|
|
|
public string Exchange { get; set; }
|
|
|
|
|
public string RoutingKey { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static ConnectionInfo Default()
|
|
|
|
|
{
|
2016-06-20 12:20:37 +00:00
|
|
|
|
return new ConnectionInfo
|
2016-06-20 10:30:03 +00:00
|
|
|
|
{
|
|
|
|
|
Host = "localhost",
|
|
|
|
|
Port = 5672,
|
|
|
|
|
VirtualHost = "/",
|
|
|
|
|
Username = "guest",
|
|
|
|
|
Password = "guest",
|
|
|
|
|
RoutingKey = "#"
|
|
|
|
|
};
|
|
|
|
|
}
|
2016-06-18 14:50:32 +00:00
|
|
|
|
}
|
|
|
|
|
}
|