CommonService.cs 551 B

123456789101112131415161718192021222324
  1. namespace OASystem.API.OAMethodLib.SignalR.HubService
  2. {
  3. public class CommonService
  4. {
  5. internal object SendCaller(string data) => "Send Successful!";
  6. internal object SendAll(string data)
  7. {
  8. return $"Hello {new Random().Next(0, 100)} {data} ";
  9. }
  10. internal object SendMessageByUser(string data)
  11. {
  12. return $"Hello {new Random().Next(0, 100)} {data} ";
  13. }
  14. internal object ReceiveMessage(string data)
  15. {
  16. return $"{data}";
  17. }
  18. }
  19. }