public async Task StartSockets() { await _rpcServer.StartAsync().ConfigureAwait(false); await _peerClient.StartAsync().ConfigureAwait(false); await _peer.StartAsync().ConfigureAwait(false); }
internal async Task InitializeRpcServerAsync() { try { await _rpcServer.StartAsync(); } catch (Exception grpcInitEx) { var hostInitEx = new Exception($"Failed to start Rpc Server. Check if your app is hitting connection limits.", grpcInitEx); } }
internal async Task InitializeRpcServerAsync() { try { _logger.LogInformation("Initializing RpcServer"); await _rpcServer.StartAsync(); } catch (Exception grpcInitEx) { var hostInitEx = new HostInitializationException($"Failed to start Rpc Server. Check if your app is hitting connection limits.", grpcInitEx); } }
internal async Task InitializeRpcServiceAsync(IRpcServer rpcService) { _rpcService = rpcService; using (_metricsLogger.LatencyEvent(MetricEventNames.HostStartupGrpcServerLatency)) { try { await _rpcService.StartAsync(); } catch (Exception grpcInitEx) { throw new HostInitializationException($"Failed to start Grpc Service. Check if your app is hitting connection limits.", grpcInitEx); } } }