Initial_commit_SecMPS_v2
This commit is contained in:
31
api_sqlsugar/VolPro.Core/SignalR/IMessageService.cs
Normal file
31
api_sqlsugar/VolPro.Core/SignalR/IMessageService.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Microsoft.AspNetCore.SignalR;
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using VolPro.Core.Enums;
|
||||
|
||||
namespace VolPro.Core.SignalR
|
||||
{
|
||||
public interface IMessageService
|
||||
{
|
||||
Task SendMessageAsync(MessageChannelData channelData);
|
||||
void SendMessage(MessageChannelData channelData);
|
||||
void SendMessage(List<int> toUserIds, string title, string content, NotificationType notificationType = NotificationType.系统,string code=null, string linkUrl = null, string linkType = null);
|
||||
/// <summary>
|
||||
/// 根据用户名获取所有的客户端
|
||||
/// </summary>
|
||||
/// <param name="username"></param>
|
||||
/// <returns></returns>
|
||||
IEnumerable<string> GetConnectionIds(string username);
|
||||
|
||||
int GetOnline(string username);
|
||||
|
||||
void Add(HubCallerContext context);
|
||||
|
||||
void RemoveCurrent();
|
||||
void Remove(string userName);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user