Пример #1
0
 public static DateTime GetTimeout(this GrpcConfig config)
 {
     return(DateTime.UtcNow.AddMilliseconds(config.Timeout));
 }
Пример #2
0
 public ConnectionManager(ILoggerFactory loggerFactory, IConfigAccessor configAccessor)
 {
     _logger = loggerFactory.CreateLogger(typeof(ConnectionManager));
     _config = configAccessor.Get <GrpcConfig>();
 }
Пример #3
0
 public GrpcClient(ConnectionManager connectionManager, IConfigAccessor configAccessor, ILoggerFactory loggerFactory)
 {
     _connectionManager = connectionManager;
     _config            = configAccessor.Get <GrpcConfig>();
     _logger            = loggerFactory.CreateLogger(typeof(GrpcClient));
 }