MetaModel.cs 683 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Grpc.Extension.BaseService.Model
  5. {
  6. public class MetaModel
  7. {
  8. public static string Ip { get; set; }
  9. public static int Port { get; set; }
  10. public static DateTime StartTime { get; set; }
  11. public static List<MetaMethodModel> Methods { get; set; } = new List<MetaMethodModel>();
  12. }
  13. public class MetaMethodModel
  14. {
  15. public string FullName { get; set; }
  16. public Type RequestType { get; set; }
  17. public Type ResponseType { get; set; }
  18. public Delegate Handler { get; set; }
  19. public Type ServiceType { get; set; }
  20. }
  21. }