public TravelClientRpcWorker(TravelServices travelServices, TcpClient connection) { this.travelServices = travelServices; this.connection = connection; try { stream = connection.GetStream(); formatter = new BinaryFormatter(); connected = true; } catch (Exception e) { Console.WriteLine(e.StackTrace); } }
public RpcConcurrentServer(string host, int port, TravelServices travelServices) : base(host, port) { this.travelServices = travelServices; }
public static TravelResponse GetTravels(TravelRequest travelRequest) { return(TravelServices.GetTravels(travelRequest)); }
public static TravelResponse GetTravels(string fromPlaceId, string toPlaceId, bool isAfter) { return(TravelServices.GetTravels(fromPlaceId, toPlaceId, isAfter)); }
public MainController(TravelServices travelService) { this.travelServices = travelService; this.travelServices.AddTravelObserver(this); }
public LoginController(TravelServices travelServices) { this.travelServices = travelServices; }