❔ Using Mediator with seperate API Contracts project
Sup guys, I've finally decided to use Mediator, and now I have the following problem: 1. I have a API contracts project, which should not have any Nuget packages installed (it's just the API request / response models) 2. I want to, for example, send the request object via Mediator. But since the API contracts project does not have Mediator installed, I can't have them implement
IRequest
IRequest
. 3. So my solution is as follows. Is this correct?
public record CreateAutomationCommand : IRequest<int>{ public CreateAutomationRequest Request { get; set; }}
public record CreateAutomationCommand : IRequest<int>{ public CreateAutomationRequest Request { get; set; }}