You can implement the service as a partial class , which allows you to split the implementation into several files.
If the requirement is to save a single endpoint and one interface, then there is no other way to split it — the one class you create must implement the entire interface.
I propose to simplify the implementation of the service as much as possible, and simply each method should be single-line, which delegates the operation of the actual implementation, which can then be divided into several classes. Perhaps it would even be advisable to do one per operation? This is a sample that I used before with success.
driis source
share