public Task <SimpleResponse> UnaryCall(ServerCallContext context, SimpleRequest request) { var response = SimpleResponse.CreateBuilder() .SetPayload(CreateZerosPayload(request.ResponseSize)).Build(); return(Task.FromResult(response)); }
public void UnaryCall(SimpleRequest request, IObserver <SimpleResponse> responseObserver) { var response = SimpleResponse.CreateBuilder() .SetPayload(CreateZerosPayload(request.ResponseSize)).Build(); //TODO: check we support ReponseType responseObserver.OnNext(response); responseObserver.OnCompleted(); }