Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: NServiceBus 6 callback client never gets a callback when the request handler fails

mikesigs:

Using NServiceBus 6's Callback feature I have found no way to alert the client that the Request Handler failed. The request handler will go through all the recoverability steps, and eventually put the message into the error queue. Meanwhile, the client just sits there waiting for its reply.


// Client code (e.g. in an MVC Controller)
var message = new FooRequest();
var response = await endpoint.Request(message);

// Handler code
public class FooRequestHandler : IHandleMessages
{
Task Handle(FooRequest message, IMessageHandlerContext context)
{
throw new Exception("Fails before the reply");
return context.Reply(new FooResponse());
}
}

In the above situation, how can I let the MVC controller/calling code know that the handler has permanently failed?



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: NServiceBus 6 callback client never gets a callback when the request handler fails

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×