public override Task <GetLocationAtIndexResponse> GetLocationAtIndex( GetLocationAtIndexRequest request, ServerCallContext context) { var breakpoint = GetBreakpoint(_targetStore, request.Breakpoint); var location = breakpoint.GetLocationAtIndex(request.Index); var response = new GetLocationAtIndexResponse(); response.Result = new GrpcSbBreakpointLocation { Id = location.GetId(), Breakpoint = request.Breakpoint }; return(Task.FromResult(response)); }
public SbBreakpointLocation GetLocationAtIndex(uint index) { GetLocationAtIndexResponse response = null; if (connection.InvokeRpc(() => { response = client.GetLocationAtIndex( new GetLocationAtIndexRequest { Breakpoint = grpcSbBreakpoint, Index = index }); })) { if (response.Result != null && response.Result.Id != 0) { return(breakpointLocationFactory.Create(connection, response.Result)); } } return(null); }