IServiceProxy.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //----------------------------------------------------------------
  2. //Module Name: IServiceProxy
  3. //Purpose:
  4. //CopyRight: Muchinfo
  5. //History:
  6. //----------------------------------------------------------------
  7. //DateTime Author Description
  8. //----------------------------------------------------------------
  9. //2014-03-21 deng.yinping Create
  10. //----------------------------------------------------------------
  11. namespace Muchinfo.MTPClient.Data.Interfaces
  12. {
  13. public interface IServiceProxy
  14. {
  15. /// <summary>
  16. /// 终结点地址
  17. /// </summary>
  18. string EndpointAddress { get; }
  19. /// <summary>
  20. /// 对象释放
  21. /// </summary>
  22. void Dispose();
  23. ///// <summary>
  24. ///// 客户代理状态
  25. ///// </summary>
  26. //CommunicationState ClientState { get; }
  27. ///// <summary>
  28. ///// 服务终节点
  29. ///// </summary>
  30. //ServiceEndpoint Endpoint { get; }
  31. /// <summary>
  32. /// ip地址,如:192.168.30.50:4688
  33. /// </summary>
  34. string IPAddress { get; }
  35. /// <summary>
  36. /// Client是否在线
  37. /// </summary>
  38. /// <returns><c>true</c> if this instance is online; otherwise, <c>false</c>.</returns>
  39. bool IsOnline();
  40. /// <summary>
  41. /// 链路 组名
  42. /// </summary>
  43. string GroupName { get; set; }
  44. }
  45. }