internal RemoteBreakpointProxy( GrpcConnection connection, RemoteBreakpointRpcServiceClient client, GrpcSbBreakpoint grpcSbBreakpoint, GrpcBreakpointLocationFactory breakpointLocationFactory) { this.connection = connection; this.client = client; this.grpcSbBreakpoint = grpcSbBreakpoint; this.breakpointLocationFactory = breakpointLocationFactory; }
internal static RemoteBreakpoint GetBreakpoint( ConcurrentDictionary <long, RemoteTarget> targetStore, GrpcSbBreakpoint grpcSbBreakpoint) { RemoteTarget target = null; if (!targetStore.TryGetValue(grpcSbBreakpoint.Target.Id, out target)) { ErrorUtils.ThrowError(StatusCode.Internal, "Could not find target in store: " + grpcSbBreakpoint.Target.Id); } var breakpoint = target.FindBreakpointById(grpcSbBreakpoint.Id); if (breakpoint == null) { ErrorUtils.ThrowError(StatusCode.Internal, "Could not find breakpoint in target: " + grpcSbBreakpoint.Id); } return(breakpoint); }
internal RemoteBreakpointProxy(GrpcConnection connection, GrpcSbBreakpoint grpcSbBreakpoint) : this(connection, new RemoteBreakpointRpcServiceClient(connection.CallInvoker), grpcSbBreakpoint, new GrpcBreakpointLocationFactory()) { }
public virtual RemoteBreakpoint Create( GrpcConnection connection, GrpcSbBreakpoint grpcSbBreakpoint) { return(new RemoteBreakpointProxy(connection, grpcSbBreakpoint)); }