Skip to content

Instantly share code, notes, and snippets.

private void OnAppStartup()
{
ConnectionFactory = new ConnectionFactory()
{
HostName = "localhost",
Port = 5672,
UserName = "myapp",
Password = "password",
RequestedHeartbeat = 4, // heartbeat is what lets your code detect problems communicating with
// the RabbitMQ server. A heartbeat of 4 will cause the server to send