jbogard / MediatR

Simple, unambitious mediator implementation in .NET
Apache License 2.0
10.84k stars 1.15k forks source link

Irequest in library and handler in web api project #1034

Closed FBicsharp closed 1 month ago

FBicsharp commented 1 month ago

Hello to everyone, I'm playing with mediator, and I make the following project structure.

I got the compile time error because the requests is outside the project, the main reasons is that I want to use the library project in others projects and send requests using the library as contracts.

The other project il loading at runtime. There is any way to have the requests on library project?

Danielovich commented 1 month ago

Hi there,

It would be a lot easier if you could provide code samples, preferably in a repo, so one could investigate the issues you are experiencing.

FBicsharp commented 1 month ago

Hi, I'm sorry, I was referencing the wrong object in Handler class. Tks for support