internal SbBreakpointLocationImpl(
     GrpcConnection connection, GrpcSbBreakpointLocation grpcSbBreakpointLocation)
     : this(connection,
            new SbBreakpointLocationRpcService.SbBreakpointLocationRpcServiceClient(
                connection.CallInvoker),
            grpcSbBreakpointLocation, new GrpcBreakpointFactory(), new GrpcAddressFactory())
 {
 }
 internal SbBreakpointLocationImpl(
     GrpcConnection connection,
     SbBreakpointLocationRpcService.SbBreakpointLocationRpcServiceClient client,
     GrpcSbBreakpointLocation grpcSbBreakpointLocation,
     GrpcBreakpointFactory breakpointFactory, GrpcAddressFactory addressFactory)
 {
     this.connection = connection;
     this.client     = client;
     this.grpcSbBreakpointLocation = grpcSbBreakpointLocation;
     this.breakpointFactory        = breakpointFactory;
     this.addressFactory           = addressFactory;
 }
        private SbBreakpointLocation GetBreakpointLocation(
            GrpcSbBreakpointLocation grpcBreakpointLocation)
        {
            var breakpoint = RemoteBreakpointRpcServiceImpl.GetBreakpoint(
                targetStore, grpcBreakpointLocation.Breakpoint);
            var breakpointLocation = breakpoint.FindLocationById(grpcBreakpointLocation.Id);

            if (breakpointLocation == null)
            {
                ErrorUtils.ThrowError(StatusCode.Internal,
                                      "Could not find breakpoint location: " + grpcBreakpointLocation.Id);
            }
            return(breakpointLocation);
        }
 public virtual SbBreakpointLocation Create(
     GrpcConnection connection, GrpcSbBreakpointLocation grpcSbBreakpointLocation)
 {
     return(new SbBreakpointLocationImpl(connection, grpcSbBreakpointLocation));
 }