handleCall method
Future<GeneratedMessage>
handleCall(
- ServerContext ctx,
- String method,
- GeneratedMessage request
override
Dispatches the call. The request object should come from createRequest.
Implementation
$async.Future<$pb.GeneratedMessage> handleCall($pb.ServerContext ctx, $core.String method, $pb.GeneratedMessage request) {
switch (method) {
case 'Foo': return this.foo(ctx, request as $8.FooRequest);
case 'Bar': return this.bar(ctx, request as $8.BarRequest);
default: throw $core.ArgumentError('Unknown method: $method');
}
}