I am working on an MVVM WPF project which contains the following projects,
- Domain
- ViewModels,
- Infrastructure,
- representation
and, for example, I need IFileService , which provide some file operations and do not contain any business logic, I am sure that the implementation of this FileService interface will be in the infrastructure project, but I have a question where to put the IFileService interface
I need to use this interface in the ViewModels project, if I put it in these projects, this means that the Infrastructure will refer to ViewModels, which is not very good, I think if I put it in a Domain that contains classes related to business, same.
Help me, what is the best way to organize the structure and links between projects and where to place interfaces such as IFileService ?
Serghei
source share