IChatClient.cs 858 B

12345678910111213141516171819202122232425262728293031323334
  1. namespace OASystem.API.OAMethodLib.Hub.HubClients
  2. {
  3. public interface IChatClient
  4. {
  5. Task SignalRLogin(int userId);
  6. Task SendAsync(string method, object message);
  7. Task SendAll(object message);
  8. Task SendMessageByUser(object message);
  9. Task SendCustomUserMessage(object message);
  10. Task ReceiveMessage(object message);
  11. /// <summary>
  12. /// 发送消息给指定用户(系统)
  13. /// </summary>
  14. /// <param name="message"></param>
  15. /// <returns></returns>
  16. Task SendSystemToUser(string message);
  17. /// <summary>
  18. /// 发送消息给所有用户(系统)
  19. /// </summary>
  20. /// <param name="id"></param>
  21. /// <param name="message"></param>
  22. /// <returns></returns>
  23. Task SendSystemToAllUser(string message);
  24. }
  25. }