using GDZZ.Core;
using GDZZ.Core.Entity;
using GDZZ.Core.Service;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.SignalR;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Linq;
using Furion.DependencyInjection;
using Furion.DynamicApiController;
namespace GDZZ.Application.Service.LiveChat
{
///
/// 即时聊天
///
[ApiDescriptionSettings("Application", Name = "LiveChat", Order = 1)]
public class LiveChatService:Hub ,ILiveChatService, IDynamicApiController, ITransient
{
///
/// 聊天总线
///
private readonly IHubContext _chatHubContext;
private readonly SqlSugarRepository sysOnlineUerRep; // 在线用户表仓储
///
/// 聊天服务
///
///
///
public LiveChatService(IHubContext chatHubContext,
SqlSugarRepository _sysOnlineUerRep)
{
this.sysOnlineUerRep = _sysOnlineUerRep;
_chatHubContext = chatHubContext;
}
}
}