Ejemplo n.º 1
0
        public async Task StartSockets()
        {
            await _rpcServer.StartAsync().ConfigureAwait(false);

            await _peerClient.StartAsync().ConfigureAwait(false);

            await _peer.StartAsync().ConfigureAwait(false);
        }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 4
0
        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);
                }
            }
        }