Signalr 为什么我不能在强类型集线器中使用属性?

Signalr 为什么我不能在强类型集线器中使用属性?,signalr,asp.net-core,Signalr,Asp.net Core,让我们有一个这样的强类型集线器: public class TestHub : Hub<IClient> { public void DoSomething() { Clients.Caller.UserPriority = 1; } } 当我尝试调用DoSomething时,我出现以下错误: Unhandled Exception: System.InvalidOperationException: The interface 'ICli

让我们有一个这样的强类型集线器:

public class TestHub : Hub<IClient>
{
    public void DoSomething()
    {
        Clients.Caller.UserPriority = 1;
    }
}
当我尝试调用DoSomething时,我出现以下错误:

 Unhandled Exception: System.InvalidOperationException: The interface 'IClient' m
ust not contain any properties.
at Microsoft.AspNetCore.SignalR.Hubs.TypedClientBuilder`1.VerifyInterface(Typ
e interfaceType)
at Microsoft.AspNetCore.SignalR.Hubs.TypedClientBuilder`1.GenerateClientBuild
er()
at Microsoft.AspNetCore.SignalR.Hubs.TypedClientBuilder`1.<>c.<.cctor>b__12_0
()
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at System.Lazy`1.get_Value()
at Microsoft.AspNetCore.SignalR.Hubs.TypedClientBuilder`1.Build(IClientProxy
proxy)
at CallSite.Target(Closure , CallSite , Type , Object )
at Microsoft.AspNetCore.SignalR.Hubs.TypedHubCallerConnectionContext`1.get_Ca
ller()
我不理解这种行为。为什么我不能在强类型集线器中为客户端设置属性


谢谢你的回答。

可能是一个bug,仍处于测试阶段。如果你觉得这是一个bug,你应该在Reported上打开一个问题,但是没有人回答…可能是一个bug,仍然处于测试阶段。如果你觉得这是一个错误,你应该打开一个问题,但没有人回答。。。
 Unhandled Exception: System.InvalidOperationException: The interface 'IClient' m
ust not contain any properties.
at Microsoft.AspNetCore.SignalR.Hubs.TypedClientBuilder`1.VerifyInterface(Typ
e interfaceType)
at Microsoft.AspNetCore.SignalR.Hubs.TypedClientBuilder`1.GenerateClientBuild
er()
at Microsoft.AspNetCore.SignalR.Hubs.TypedClientBuilder`1.<>c.<.cctor>b__12_0
()
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at System.Lazy`1.get_Value()
at Microsoft.AspNetCore.SignalR.Hubs.TypedClientBuilder`1.Build(IClientProxy
proxy)
at CallSite.Target(Closure , CallSite , Type , Object )
at Microsoft.AspNetCore.SignalR.Hubs.TypedHubCallerConnectionContext`1.get_Ca
ller()
public class TestHub : Hub
{
    public void DoSomething()
    {
        Clients.Caller.UserPriority = 1;
    }
}