public override Task <GetPointeeTypeResponse> GetPointeeType(GetPointeeTypeRequest request, ServerCallContext context) { SbType type = typeStore.GetObject(request.Type.Id); SbType pointeeType = type.GetPointeeType(); var response = new GetPointeeTypeResponse(); if (pointeeType != null) { response.Type = GrpcFactoryUtils.CreateType(pointeeType, typeStore.AddObject(pointeeType)); } return(Task.FromResult(response)); }
public SbType GetPointeeType() { GetPointeeTypeResponse response = null; if (connection.InvokeRpc(() => { response = client.GetPointeeType(new GetPointeeTypeRequest { Type = grpcSbType }); })) { if (response.Type != null && response.Type.Id != 0) { return(typeFactory.Create(connection, response.Type)); } } return(null); }