Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requestClient.getResponse hugs when queue does not exists #2

Open
dpr-dev opened this issue Jul 15, 2021 · 0 comments
Open

requestClient.getResponse hugs when queue does not exists #2

dpr-dev opened this issue Jul 15, 2021 · 0 comments

Comments

@dpr-dev
Copy link

dpr-dev commented Jul 15, 2021

@Injectable()
export class OrderDetailsService {
  private readonly _client: RequestClient<
    GetOrderDetailsRequest,
    GetOrderDetailsResponse
  >;

  constructor(masstransit: MassTransitService) {
    this._client = masstransit.bus.requestClient<
      GetOrderDetailsRequest,
      GetOrderDetailsResponse
    >({
      exchange: 'order-details',
      requestType: new MessageType(
        'GetOrderDetailsRequest',
        'Contracts.Events.OrderProcessing.Requests',
      ),
      responseType: new MessageType(
        'GetOrderDetailsResponse',
        'Contracts.Events.OrderProcessing.Requests',
      ),
    });
  }

  public getResponse(req: GetOrderDetailsRequest) {
    return this._client.getResponse(req);
  }
}

an error occurred if the order-details queue does not exists but request will never rejected

@dpr-dev dpr-dev changed the title requestClient.getResponse hugs when error occurred requestClient.getResponse hugs when queue does not exists Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant