13 lines
270 B
C#
13 lines
270 B
C#
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.SignalR;
|
|
|
|
namespace Todo.Api.Hubs
|
|
{
|
|
public class TodoHub : Hub
|
|
{
|
|
public async Task GetInboxTodos()
|
|
{
|
|
await Clients.Caller.SendAsync("InboxTodos", "some data");
|
|
}
|
|
}
|
|
} |