Generic Interface on Application Layer #469
Unanswered
igorgomeslima
asked this question in
Q&A
Replies: 1 comment 3 replies
-
What's the purpose of PartnerAJobOne.cs and PartnerBJobOne.cs ? and Why are they defined in Infrastructure ? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks!
I want to implement an generic
Interface<T>
inApplication Layer
, but by design we can not add reference toInfrastructure Layer
(where the concrete implementation resides) onApplication Layer
, on this way I can't inject genericInterface<T>
services on myCommands Handlers
.Any tips or another mindset about it? 😎
Some code:
namespace Application.Common.Interfaces
namespace Infrastructure.Services
namespace Application.JobOne.Commands
D.I
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions