IHub.cs 517 B

123456789101112131415161718192021222324
  1. #if !BESTHTTP_DISABLE_SIGNALR
  2. using System;
  3. using BestHTTP.SignalR.Messages;
  4. namespace BestHTTP.SignalR.Hubs
  5. {
  6. /// <summary>
  7. /// Interface to be able to hide internally used functions and properties.
  8. /// </summary>
  9. public interface IHub
  10. {
  11. Connection Connection { get; set; }
  12. bool Call(ClientMessage msg);
  13. bool HasSentMessageId(UInt64 id);
  14. void Close();
  15. void OnMethod(MethodCallMessage msg);
  16. void OnMessage(IServerMessage msg);
  17. }
  18. }
  19. #endif