SteeltoeOSS / Samples

Steeltoe samples and reference application collection
https://steeltoe.io/
Apache License 2.0
641 stars 250 forks source link

Cancellation token issue #241

Closed ahmedanwar100 closed 1 year ago

ahmedanwar100 commented 2 years ago

Describe the bug

I passed a cancellation token and trigger the event but at the receiving side the listener was not invoked.

Steps to reproduce

Steps to reproduce the behavior:

  1. Use this method await _rabbitTemplate.ConvertAndSendAsync(Constants.RECEIVE_AND_CONVERT_QUEUE, msg, cancellationToken); and cancellation token will be there if you use mediator pattern
  2. And at the receiving side i pass it as param image

Expected behavior

Listener service should be invoked with cancellation token.

Environment (please complete the following information):

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context or links

Add any other context about the problem here.

dtillman commented 2 years ago

Hi, Not sure I understand the problem you are pointing out... The cancelationtoken(s) are intended to be used to cancel, etc. the async request... it is not passed to the listener, it only functions locally at the API.

ahmedanwar100 commented 1 year ago

issue resolved