private static void SetupSecondaryVirtualHost() { try { Broker.AddVhost(Constants.SecondaryVirtualHost); } catch (ErlangErrorRpcException) { // probably vhost exists already } Broker.SetPermissions("guest", ".*", ".*", ".*", Constants.SecondaryVirtualHost); }