19 lines
410 B
C#
19 lines
410 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using Microsoft.AspNet.SignalR;
|
|
using Microsoft.AspNet.SignalR.Hubs;
|
|
|
|
namespace ResoursesManager
|
|
{
|
|
[HubName("notifyHub")]
|
|
public class NotificationsHub : Hub
|
|
{
|
|
[HubMethodName("connect")]
|
|
public void Connect(string message)
|
|
{
|
|
Clients.All.Connect(message);
|
|
}
|
|
}
|
|
} |