IOnlineClient.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System;
  2. using System.Collections.Generic;
  3. namespace Abp.RealTime
  4. {
  5. /// <summary>
  6. /// Represents an online client connected to the application.
  7. /// </summary>
  8. public interface IOnlineClient
  9. {
  10. /// <summary>
  11. /// Unique connection Id for this client.
  12. /// </summary>
  13. string ConnectionId { get; }
  14. /// <summary>
  15. /// IP address of this client.
  16. /// </summary>
  17. string IpAddress { get; }
  18. /// <summary>
  19. /// Tenant Id.
  20. /// </summary>
  21. int? TenantId { get; }
  22. /// <summary>
  23. /// User Id.
  24. /// </summary>
  25. long? UserId { get; }
  26. /// <summary>
  27. /// Connection establishment time for this client.
  28. /// </summary>
  29. DateTime ConnectTime { get; }
  30. /// <summary>
  31. /// Shortcut to set/get <see cref="Properties"/>.
  32. /// </summary>
  33. object this[string key] { get; set; }
  34. /// <summary>
  35. /// Can be used to add custom properties for this client.
  36. /// </summary>
  37. Dictionary<string, object> Properties { get; }
  38. }
  39. }