private async Task ProcessAsync(ITransportServer server) { try { await server.In.ConsumeAsync(ProcessAsync).ConfigureAwait(false); Log.Debug("Server completed: {{{0}}}", server); } catch (OperationCanceledException) when(CancellationToken.IsCancellationRequested) { Log.Debug("Server stopped: {{{0}}}", server); } catch (Exception ex) { Log.Error(ex, "Exception on server listening: {{{0}}}", server); } }
public TransportQuoteServer(ITransportServer transportServer) { this.server = transportServer; server.OnNewClientConnected += ServerOnOnNewClientConnected; }
public ClientController(ITransportServer server) { _server = server; _currentEmployee = null; }
public ServerSerial(string host, int port, ITransportServer server) : base(host, port) { _server = server; Console.WriteLine("Server ..."); }
public TransportQuoteServer(ITransportServer transportServer) { this.server = transportServer; server.OnNewClientConnected += ServerOnOnNewClientConnected; }