C# 클래스 Routeguide.Program.RouteGuideClient

Sample client code that makes gRPC calls to the server.
파일 보기 프로젝트 열기: endlessm/chromium-browser

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
Log ( string s ) : void
NewNote ( string message, int lat, int lon ) : RouteNote

메소드 상세

GetFeature() 공개 메소드

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

ListFeatures() 공개 메소드

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

RecordRoute() 공개 메소드

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

RouteChat() 공개 메소드

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

RouteGuideClient() 공개 메소드

public RouteGuideClient ( Routeguide.RouteGuide client ) : Grpc.Core
client Routeguide.RouteGuide
리턴 Grpc.Core