C# Class Routeguide.Program.RouteGuideClient

Sample client code that makes gRPC calls to the server.
Afficher le fichier Open project: endlessm/chromium-browser

Méthodes publiques

Méthode Description
GetFeature ( int lat, int lon ) : void

Blocking unary call example. Calls GetFeature and prints the response.

ListFeatures ( int lowLat, int lowLon, int hiLat, int hiLon ) : System.Threading.Tasks.Task

Server-streaming example. Calls listFeatures with a rectangle of interest. Prints each response feature as it arrives.

RecordRoute ( List features, int numPoints ) : System.Threading.Tasks.Task

Client-streaming example. Sends numPoints randomly chosen points from features with a variable delay in between. Prints the statistics when they are sent from the server.

RouteChat ( ) : System.Threading.Tasks.Task

Bi-directional streaming example. Send some chat messages, and print any chat messages that are sent from the server.

RouteGuideClient ( Routeguide.RouteGuide client ) : Grpc.Core

Private Methods

Méthode Description
Log ( string s ) : void
NewNote ( string message, int lat, int lon ) : RouteNote

Method Details

GetFeature() public méthode

Blocking unary call example. Calls GetFeature and prints the response.
public GetFeature ( int lat, int lon ) : void
lat int
lon int
Résultat void

ListFeatures() public méthode

Server-streaming example. Calls listFeatures with a rectangle of interest. Prints each response feature as it arrives.
public ListFeatures ( int lowLat, int lowLon, int hiLat, int hiLon ) : System.Threading.Tasks.Task
lowLat int
lowLon int
hiLat int
hiLon int
Résultat System.Threading.Tasks.Task

RecordRoute() public méthode

Client-streaming example. Sends numPoints randomly chosen points from features with a variable delay in between. Prints the statistics when they are sent from the server.
public RecordRoute ( List features, int numPoints ) : System.Threading.Tasks.Task
features List
numPoints int
Résultat System.Threading.Tasks.Task

RouteChat() public méthode

Bi-directional streaming example. Send some chat messages, and print any chat messages that are sent from the server.
public RouteChat ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

RouteGuideClient() public méthode

public RouteGuideClient ( Routeguide.RouteGuide client ) : Grpc.Core
client Routeguide.RouteGuide
Résultat Grpc.Core