0
메시지 수신 성능을 기록하기 위해 수신 엔드 포인트에 MassTransit 미들웨어를 구현 중입니다. PipeContext에서 메시지 유형을 가져오고 싶습니다. 어떻게받을 수 있습니까?MassTransit의 PipeContext에서 메시지 유형 가져 오기
public async Task Send(T context, IPipe<T> next)
{
// I want to know the message type from here so that i can log it
using (_logger.BeginTimedOperation("Time for handling message", null, LogEventLevel.Debug))
{
await next.Send(context);
}
}
정말 대단합니다. 감사합니다. –