Broadcast Documentation Go to the repo

Requests

class Request : IRequest { }

class RequestHandler : IRequestHandler<Request>
{
    public void Handle(Request request)
    {
        ...
    }
}

...
var requestHandler = new RequestHandler();

// create the RequestPublisher
var publisher = new RequestPublisher<Request>(requestHandler);

// pass the request to be published
publisher.Handle(new Request(5));