Skip to content

How can we subscribe to a rabbitmq exchange and then create a queue to recieve the messages? #7

Description

@shv07

I tried using the approach I use in Stomp JS but it does not work here:-

  var subsHeaders = new Dictionary<string, string>
  {
	  { "x-queue-name", "newqueue"},
	  { "x-message-ttl", "60000" },
	  {"'x-expires", "300000" }
  };
  
  await client.SubscribeAsync("exchange/<exchange-name>/<routing-key>", subsHeaders, async (sender, stompMessage) =>
  {
	  await client.AckAsync(stompMessage.Headers["ack"]);
	  
  });

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions