TypedSignalR.Client icon indicating copy to clipboard operation
TypedSignalR.Client copied to clipboard

IHub does not inherit methods

Open szingg opened this issue 2 years ago • 1 comments

First of all, thanks for your awesome work.

The following usecase does not work:

interface IHub : IAnyInterface {}

interface IAnyInterface
{
    Task<Guid> HubMethod2(string message, int value);
}

var hub = hubConnection.CreateHubProxy<IHub>();

build output:

Error	CS0535	'Extensions.HubInvokerForXyServicesIHub' does not implement interface member 'IAnyInterface.HubMethod2(string, int)'	<path>\TypedSignalR.Client\TypedSignalR.Client.SourceGenerator.ExtensionsSourceGenerator\TypedSignalR.Client.Extensions.Internal.Generated.cs

szingg avatar Oct 31 '22 06:10 szingg

Thank you for the report! I did not care about such a use case.

I want to support that use case in the future.

nenoNaninu avatar Oct 31 '22 16:10 nenoNaninu

I need this :p

christallire avatar Mar 10 '23 09:03 christallire

I released v3.4.0! This version supports interface inheritance.

nenoNaninu avatar Apr 28 '23 08:04 nenoNaninu