I have an 'Common' interface I1 that defines some behavior behavior, e.g.:
interface I1
{
Task<int> Calculate(int intput);
}
I'd like to inherit this interface from multiple actor interfaces, so they can implement it in various ways:
interface IActor1 : I1, IActor
{
}
interface IActor2: I1, IActor
{
}
However when compiling, it's failing (with no indication that it's caused by the interface inheritance). Seems like any actor interface anywhere in inheritance hierarchy has to implement IActor
Why is that, does seem to add any benefit, it only clutters my 'Common' library (where I1 is defined) with Actor specific dependecies that the consumers don't care about
Any idea how to achieve this?
Regards, Stefan