InfoRS.cs 679 B

12345678910111213141516171819202122232425262728
  1. using ProtoBuf;
  2. using System.Collections.Generic;
  3. namespace Grpc.Extension.BaseService.Model
  4. {
  5. [ProtoContract(ImplicitFields = ImplicitFields.AllPublic)]
  6. public class InfoRS
  7. {
  8. [ProtoMember(1)]
  9. public string IpAndPort { get; set; }
  10. [ProtoMember(2)]
  11. public long StartTime { get; set; }
  12. [ProtoMember(3)]
  13. public List<GrpcMethodInfo> MethodInfos { get; set; }
  14. }
  15. [ProtoContract(ImplicitFields = ImplicitFields.AllPublic)]
  16. public class GrpcMethodInfo
  17. {
  18. public string Name { get; set; }
  19. public bool SaveResponseEnable { get; set; }
  20. public bool IsThrottled { get; set; }
  21. }
  22. }