using Grpc.Extension.Abstract.Model;
using System;
using System.Collections.Generic;
using System.Text;
namespace Grpc.Extension.Client
{
///
/// GrpcClientOptions
///
public class GrpcClientOptions
{
///
/// 服务发现地址(http://192.168.8.6:8500)
///
public string DiscoveryUrl { get; set; }
///
/// 服务地址缓存时间(秒)
///
public int ServiceAddressCacheTime { get; set; } = 10;
///
/// 默认错误码
///
public int DefaultErrorCode
{
get { return GrpcErrorCode.DefaultErrorCode; }
set { GrpcErrorCode.DefaultErrorCode = value; }
}
///
/// JaegerOptions
///
public JaegerOptions Jaeger { get; set; }
///
/// Grpc客户端调用超时时间(单位:秒)
///
public double GrpcCallTimeOut { get; set; } = 10;
}
}