C# Class Routeguide.Program.RouteGuideClient

Sample client code that makes gRPC calls to the server.
显示文件 Open project: endlessm/chromium-browser

Public Methods

Method 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

Method Description
Log ( string s ) : void
NewNote ( string message, int lat, int lon ) : RouteNote

Method Details

GetFeature() public method

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

ListFeatures() public method

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
return System.Threading.Tasks.Task

RecordRoute() public method

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
return System.Threading.Tasks.Task

RouteChat() public method

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
return System.Threading.Tasks.Task

RouteGuideClient() public method

public RouteGuideClient ( Routeguide.RouteGuide client ) : Grpc.Core
client Routeguide.RouteGuide
return Grpc.Core