register<TResponse, TRequest extends Request<TResponse>> method

void register<TResponse, TRequest extends Request<TResponse>>(
  1. RequestHandler<TResponse, TRequest> handler
)

Registers the request handler for the given TRequest.

Implementation

void register<TResponse, TRequest extends Request<TResponse>>(
  RequestHandler<TResponse, TRequest> handler,
) {
  _requestHandlerStore.register(handler);
}