ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,284 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I add the method but when use it there will be an error:
HubException: Method does not exist.
why?
public interface IResponse
{
Task AddDeviceResponse(int id);
}
public class DeviceHub:Hub<IResponse>
{
public async Task AddDevice(int id)
{
await Clients.Caller.AddDeviceResponse(0);
}
}
when I call the AddDevice there will be the error why?