Table of Contents

Class ResponseHandlerBase<TRequest, TResponse>

Namespace
CarrotMQ.Core.Handlers
Assembly
CarrotMQ.Core.dll

Base class to handle responses of a specific request.

public abstract class ResponseHandlerBase<TRequest, TResponse> : HandlerBase<CarrotResponse<TRequest, TResponse>, NoResponse> where TRequest : _IRequest<TRequest, TResponse> where TResponse : class

Type Parameters

TRequest

The type of the original request being handled.

TResponse

The type of the response being handled.

Inheritance
HandlerBase<CarrotResponse<TRequest, TResponse>, NoResponse>
ResponseHandlerBase<TRequest, TResponse>
Inherited Members

Constructors

ResponseHandlerBase()

protected ResponseHandlerBase()

Methods

Ok()

Creates a handler result indicating that the event processing is successful. The message will be acked

public IHandlerResult Ok()

Returns

IHandlerResult